Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

2) Make Rust FaustDsp Trait Optional #1080

Open
wants to merge 4 commits into
base: master-dev
Choose a base branch
from

Conversation

crop2000
Copy link
Contributor

This PR introduces the new compile flag -rnt --rust-no-faustdsp-trait to faust, to not generate the FaustDsp interface.
The aim is to be able to make use of flags like -ec or -os that change the generated code so that it is not compatible with the FaustDsp trait.
@bluenote10
@obsoleszenz

@@ -362,13 +362,13 @@ interp1:
#########################################################################
# Rust backend
rust:
$(MAKE) -f Make.rust FAUSTOPTIONS="-I dsp -double"
$(MAKE) -f Make.rust FAUSTOPTIONS="-I dsp -double -rnt"
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

In my opinion the CI should always use the mode that generates code against the trait.

As explained in the old PR, this largely reduces the risk of making an accidental breaking change. If the CI no longer runs against the trait based generation it would become rather easy to open a PR and merge it, and by accident breaks the interface in a fundamental way.

Personally I would prefer if -ec and -os would also use their own traits instead to clearly communicate what the stable interface of these modes is.

Copy link
Contributor Author

@crop2000 crop2000 Nov 10, 2024

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Ok i will setup different combinations of flags for the tests.

I don't want to work on faust generating traits now because i think traits are a separate problem to solve. People who want a simple way of using faust with rust can just use less flags.

@crop2000
Copy link
Contributor Author

rebased on top of #1077

@crop2000 crop2000 mentioned this pull request Nov 10, 2024
@crop2000 crop2000 changed the title Make Rust FaustDsp Trait Optional 2) Make Rust FaustDsp Trait Optional Nov 11, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants