Distribute flux as a crate? #570
Replies: 2 comments 5 replies
-
In theory, it's possible. However, there are some practical considerations. Flux, as it's designed right now, relies on custom Rust compiler modifications to achieve its data-and control-flow analyses, in order to reason about permissions and capabilities, something the standard Rust compiler doesn't offer. So, as long as flux relies on these special compiler features, it cannot readily be distributed as a standard crate unless the features that flux depends on have a later implementation in stable Rust. However, as Rust evolves and if these features become part of the stable branch of the language, then it would be possible to distribute it as a crate on https://crates.io/. |
Beta Was this translation helpful? Give feedback.
-
Hi, @Milo123459. What exactly is the blocker for using Flux? While you need a nightly version of the compiler installed to run Flux, you can still compile and run your code with a (different) stable version. If you use Rustup it should be straightforward to have both versions (granted we don't have good documentation around it). Do you not use Rustup? do you have some other restrictions? While Flux will probably never be "just a crate" we are interested in improving the way we distribute it. The issue is that Flux has external dependencies that can't be bundled in a single binary and we need to figure out how to distribute those. Unfortunately, we currently don't have too many cycles to work on it. Help would be appreciated. |
Beta Was this translation helpful? Give feedback.
-
Could flux ever be distributed as a crate? The only thing preventing me from using this is the fact it requires a custom rustc.
Beta Was this translation helpful? Give feedback.
All reactions