Commit graph

6 commits

Author SHA1 Message Date
Aaron Andersen
8f6ec2ec5c Fix path coercion by calling eval_state_builder_load()
Without this call, settings from the global Nix configuration are never
loaded, leaving readOnlyMode = true (the default). This prevents Nix
from adding paths to the store during evaluation, causing errors like:

  error: path '/some/local/path' does not exist

This fix loads global settings before creating the EvalState, enabling
path coercion for local file references.
2026-01-05 20:59:44 -05:00
Robert Hensing
b78dd97051 Dereference workspace lints for nix-cargo-integration compatibility
Replace `[lints] workspace = true` with explicit lint configuration in
each crate's Cargo.toml. This allows nix-cargo-integration to build
individual crates in isolation, as it cannot resolve workspace-level
lint configuration when building crates independently.
2025-12-16 03:06:58 +01:00
Robert Hensing
278a1379e2 Document safety requirements for __private functions
The previous "See underlying function" text didn't provide a way to
find the underlying function, forcing users to search the codebase.
Stating the safety contracts explicitly makes the API usable.
2025-12-16 02:05:44 +01:00
John Ericson
351a206776 Fix clippy and track in CI
`flake check` will run clippy.
2025-12-15 19:48:45 -05:00
John Ericson
cfda626614 Format, and keep formatted 2025-12-05 16:55:09 -05:00
Robert Hensing
55eacf43c3 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.
2025-10-26 23:29:13 +01:00