Rust: Difference between revisions
imported>Luis-Hebendanz No edit summary |
imported>Luis-Hebendanz No edit summary |
||
Line 96: | Line 96: | ||
</syntaxHighlight> | </syntaxHighlight> | ||
It's important to have a file named | It's important to have a file named <code>rust-toolchain</code> lying in the same directory as the shell.nix. | ||
It's purpose is to pin the version of the used rust compiler. | It's purpose is to pin the version of the used rust compiler. | ||
<syntaxHighlight lang="bash"> | <syntaxHighlight lang="bash"> | ||
Line 103: | Line 103: | ||
</syntaxHighlight> | </syntaxHighlight> | ||
The imporant part is that this also works with complex setups using | The imporant part is that this also works with complex setups using bindgen and precompiled c libraries. To add a new c library in the search path of bindgen and rustc edit the variables <code>BINDGEN_EXTRA_CLANG_ARGS</code> and <code>RUSTFLAGS</code> | ||
== Unofficial overlays == | == Unofficial overlays == |