Struct crate2nix::GenerateConfig
source · pub struct GenerateConfig {
pub cargo_toml: Vec<PathBuf>,
pub use_cargo_lock_checksums: bool,
pub output: PathBuf,
pub crate_hashes_json: PathBuf,
pub nixpkgs_path: String,
pub other_metadata_options: Vec<String>,
pub read_crate_hashes: bool,
}
Expand description
Configuration for the default.nix generation.
Fields§
§cargo_toml: Vec<PathBuf>
The path to Cargo.toml
.
use_cargo_lock_checksums: bool
Whether to inspect Cargo.lock
for checksums so that we do not need to prefetch them.
output: PathBuf
The path of the generated Cargo.nix
file.
crate_hashes_json: PathBuf
The path of the crate-hashes.json
file which is used to look up hashes and/or store
prefetched hashes at.
nixpkgs_path: String
The nix expression for the nixpkgs path to use.
other_metadata_options: Vec<String>
Additional arguments to pass to cargo metadata
.
read_crate_hashes: bool
Whether to read a crate-hashes.json
file.
Trait Implementations§
source§impl Clone for GenerateConfig
impl Clone for GenerateConfig
source§fn clone(&self) -> GenerateConfig
fn clone(&self) -> GenerateConfig
Returns a copy of the value. Read more
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moresource§impl Debug for GenerateConfig
impl Debug for GenerateConfig
source§impl<'de> Deserialize<'de> for GenerateConfig
impl<'de> Deserialize<'de> for GenerateConfig
source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Auto Trait Implementations§
impl Freeze for GenerateConfig
impl RefUnwindSafe for GenerateConfig
impl Send for GenerateConfig
impl Sync for GenerateConfig
impl Unpin for GenerateConfig
impl UnwindSafe for GenerateConfig
Blanket Implementations§
source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more