maint: Move to /rust/* to /

This makes it easier for tooling to find the Rust stuff.
Rust/non-rust is not a useful distinction in this repo anymore anyway.
This commit is contained in:
Robert Hensing 2025-10-26 23:29:13 +01:00
parent 8c64b5e380
commit 55eacf43c3
33 changed files with 5 additions and 5 deletions

View file

View file

@ -16,7 +16,7 @@
pre-commit.settings.hooks.nixfmt-rfc-style.enable = true; pre-commit.settings.hooks.nixfmt-rfc-style.enable = true;
# Temporarily disable rustfmt due to configuration issues # Temporarily disable rustfmt due to configuration issues
# pre-commit.settings.hooks.rustfmt.enable = true; # pre-commit.settings.hooks.rustfmt.enable = true;
pre-commit.settings.settings.rust.cargoManifestPath = "./rust/Cargo.toml"; pre-commit.settings.settings.rust.cargoManifestPath = "./Cargo.toml";
# Check that we're using ///-style doc comments in Rust code. # Check that we're using ///-style doc comments in Rust code.
# #
@ -78,7 +78,7 @@
]; ];
shellHook = '' shellHook = ''
${config.pre-commit.installationScript} ${config.pre-commit.installationScript}
source ${../rust/bindgen-gcc.sh} source ${../bindgen-gcc.sh}
echo 1>&2 "Welcome to the development shell!" echo 1>&2 "Welcome to the development shell!"
''; '';
# rust-analyzer needs a NIX_PATH for some reason # rust-analyzer needs a NIX_PATH for some reason

View file

@ -3,9 +3,9 @@
If `cargo-valgrind` is broken, you may run `valgrind` manually. If `cargo-valgrind` is broken, you may run `valgrind` manually.
1. `cd rust; cargo test -v` 1. `cargo test -v`
2. find the relevant test suite executable in the log 2. find the relevant test suite executable in the log
- example: `/home/user/src/nix-bindings-rust/rust/target/debug/deps/nix_util-036ec381a9e3fd6d` - example: `/home/user/src/nix-bindings-rust/target/debug/deps/nix_util-036ec381a9e3fd6d`
3. `valgrind --leak-check=full <paste the test exe>` 3. `valgrind --leak-check=full <paste the test exe>`
4. check that 4. check that
- `definitely lost: 0 bytes in 0 blocks` - `definitely lost: 0 bytes in 0 blocks`

View file

@ -21,7 +21,7 @@
imports = [ imports = [
inputs.nix-cargo-integration.flakeModule inputs.nix-cargo-integration.flakeModule
inputs.flake-parts.flakeModules.partitions inputs.flake-parts.flakeModules.partitions
./rust/nci.nix ./nci.nix
]; ];
systems = [ systems = [
"x86_64-linux" "x86_64-linux"