SYMBOL INDEX (303 symbols across 71 files) FILE: crate2nix/src/command.rs function run (line 16) | pub fn run(caption: &str, command: &mut std::process::Command) -> Result... function pass_through (line 62) | fn pass_through(mut read: impl Read + Send + 'static, sender: mpsc::Send... FILE: crate2nix/src/config.rs type Config (line 39) | pub struct Config { method read_from_or_default (line 15) | pub fn read_from_or_default(path: &Path) -> Result { method write_to (line 29) | pub fn write_to(&self, path: &Path) -> Result<(), Error> { method upsert_source (line 46) | pub fn upsert_source( method print_sources (line 58) | pub fn print_sources(&self) { type Source (line 87) | pub enum Source { method name (line 162) | pub fn name(&self) -> Option<&str> { method as_command (line 212) | pub fn as_command(&self, name: &str) -> String { type NixFile (line 132) | pub enum NixFile { method as_command (line 152) | pub fn as_command(&self) -> String { method fmt (line 142) | fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { method fmt (line 186) | fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { FILE: crate2nix/src/json_output.rs type ResolvedWorkspace (line 18) | pub struct ResolvedWorkspace { type ResolvedCrate (line 33) | pub struct ResolvedCrate { type DepInfo (line 88) | pub struct DepInfo { type SourceInfo (line 106) | pub enum SourceInfo { type BinTarget (line 125) | pub struct BinTarget { function normalize_name (line 133) | fn normalize_name(name: &str) -> String { function activated_optional_deps (line 146) | fn activated_optional_deps( function resolve_deps (line 208) | fn resolve_deps(deps: &[ResolvedDependency], activated: &HashSet... function convert_source (line 233) | fn convert_source(source: &ResolvedSource, workspace_root: &str) -> Opti... function to_resolved_workspace (line 270) | pub fn to_resolved_workspace(build_info: &BuildInfo) -> ResolvedWorkspace { function dep_syntax_activates_optional_dep (line 384) | fn dep_syntax_activates_optional_dep() { function renamed_optional_dep_activated_by_effective_name (line 404) | fn renamed_optional_dep_activated_by_effective_name() { function only_referenced_rename_activated_among_same_package (line 426) | fn only_referenced_rename_activated_among_same_package() { function platform_deps_preserved_with_target_string (line 472) | fn platform_deps_preserved_with_target_string() { FILE: crate2nix/src/lib.rs type BuildInfo (line 48) | pub struct BuildInfo { method for_config (line 69) | pub fn for_config(info: &GenerateInfo, config: &GenerateConfig) -> Res... method prune_unneeded_crates (line 100) | fn prune_unneeded_crates(&mut self) { method new (line 130) | fn new( function cargo_metadata (line 172) | fn cargo_metadata(config: &GenerateConfig, cargo_toml: &Path) -> Result<... function prefetch_and_fill_crates_sha256 (line 187) | fn prefetch_and_fill_crates_sha256( function prefetch_and_fill_registries (line 228) | fn prefetch_and_fill_registries( function extract_hashes_from_lockfile (line 238) | fn extract_hashes_from_lockfile( type GenerateInfo (line 294) | pub struct GenerateInfo { method default (line 302) | fn default() -> GenerateInfo { type GenerateConfig (line 312) | pub struct GenerateConfig { FILE: crate2nix/src/lock.rs type EncodableResolve (line 90) | pub struct EncodableResolve { method load_lock_file (line 14) | pub fn load_lock_file(path: &Path) -> Result { method load_lock_string (line 20) | pub fn load_lock_string(path: &Path, config: &str) -> Result) -> fmt::Result { method serialize (line 154) | fn serialize(&self, s: S) -> Result method deserialize (line 163) | fn deserialize(d: D) -> Result type Err (line 128) | type Err = anyhow::Error; method from_str (line 130) | fn from_str(s: &str) -> Result { FILE: crate2nix/src/main.rs constant DEFAULT_OUTPUT (line 16) | const DEFAULT_OUTPUT: &str = "./Cargo.nix"; constant DEFAULT_JSON_OUTPUT (line 17) | const DEFAULT_JSON_OUTPUT: &str = "./Cargo.json"; type Opt (line 24) | pub enum Opt { type SourceCommands (line 175) | pub enum SourceCommands { method execute (line 204) | pub fn execute(self, crate2nix_json: &Path) -> Result<(), Error> { type SourceAddingCommands (line 246) | pub enum SourceAddingCommands { method execute (line 329) | pub fn execute(self, crate2nix_json: &Path) -> Result<(), Error> { function check_generated_json (line 377) | fn check_generated_json(path: impl AsRef) -> Result<(), Error> { function main (line 393) | fn main() -> anyhow::Result<()> { FILE: crate2nix/src/metadata.rs type MergedMetadata (line 23) | pub struct MergedMetadata { method merge (line 33) | pub fn merge(metadatas: Vec) -> Result { type IndexedMetadata (line 87) | pub struct IndexedMetadata { method new_from (line 98) | pub fn new_from(metadata: Metadata) -> Result { method new_from_merged (line 103) | pub fn new_from_merged( method root_package (line 148) | pub fn root_package(&self) -> Option<&Package> { type PackageIdShortener (line 158) | pub struct PackageIdShortener { method new (line 173) | fn new<'a>(all_packages: impl Iterator) -> Package... method lengthen_ref (line 220) | pub fn lengthen_ref<'a>(&'a self, package_id: &'a PackageId) -> &'a Pa... method shorten_ref (line 224) | pub fn shorten_ref<'a>(&'a self, package_id: &'a PackageId) -> &'a Pac... method shorten (line 228) | pub fn shorten(&self, package_id: &PackageId) -> PackageId { method shorten_owned (line 235) | pub fn shorten_owned(&self, package_id: PackageId) -> PackageId { method shorten_in_package (line 242) | fn shorten_in_package(&self, package: &Package) -> Package { method shorten_in_node (line 248) | fn shorten_in_node(&self, node: &Node) -> Node { method shorten_in_node_dep (line 264) | fn shorten_in_node_dep(&self, nod_dep: &NodeDep) -> NodeDep { FILE: crate2nix/src/nix_build.rs function nix_build (line 13) | pub fn nix_build( function dump_with_lines (line 52) | pub fn dump_with_lines(file_path: impl AsRef) -> Result<(), Error> { function run_cmd (line 65) | pub fn run_cmd(cmd_path: impl AsRef) -> Result { FILE: crate2nix/src/prefetch.rs function parse_package_id_components (line 21) | fn parse_package_id_components(repr: &str) -> Option<(String, String)> { type HashSource (line 40) | enum HashSource { type HashWithSource (line 46) | struct HashWithSource { type SourcePrefetchBundle (line 53) | struct SourcePrefetchBundle<'a> { function prefetch (line 62) | pub fn prefetch( function prefetch_registries (line 209) | pub fn prefetch_registries( function get_command_output (line 266) | fn get_command_output(cmd: &str, args: &[&str]) -> Result { type PrefetchableSource (line 288) | pub trait PrefetchableSource: ToString { method needs_prefetch (line 291) | fn needs_prefetch(&self) -> bool; method prefetch (line 293) | fn prefetch(&self) -> Result; method needs_prefetch (line 308) | fn needs_prefetch(&self) -> bool { method prefetch (line 314) | fn prefetch(&self) -> Result { method needs_prefetch (line 322) | fn needs_prefetch(&self) -> bool { method prefetch (line 326) | fn prefetch(&self) -> Result { method needs_prefetch (line 337) | fn needs_prefetch(&self) -> bool { method prefetch (line 341) | fn prefetch(&self) -> Result { method needs_prefetch (line 349) | fn needs_prefetch(&self) -> bool { method prefetch (line 353) | fn prefetch(&self) -> Result { method inner_prefetchable (line 297) | fn inner_prefetchable(&self) -> Option<&dyn PrefetchableSource> { function old_format_crates_io (line 390) | fn old_format_crates_io() { function old_format_git (line 399) | fn old_format_git() { function new_format_with_name (line 408) | fn new_format_with_name() { function new_format_registry (line 417) | fn new_format_registry() { function new_format_without_name (line 426) | fn new_format_without_name() { function old_format_short_no_source (line 433) | fn old_format_short_no_source() { function single_token_returns_none (line 442) | fn single_token_returns_none() { function new_format_version_with_build_metadata (line 448) | fn new_format_version_with_build_metadata() { FILE: crate2nix/src/render.rs constant CARGO_NIX (line 30) | pub const CARGO_NIX: Template = template!("Cargo.nix.tera"); constant DEFAULT_NIX (line 33) | const DEFAULT_NIX: Template<()> = template!("nix/crate2nix/default.nix"); constant SOURCES_NIX (line 36) | pub const SOURCES_NIX: Template = template!("crate2nix-sou... type CargoTomlForWorkspace (line 43) | pub struct CargoTomlForWorkspace { type Template (line 55) | pub struct Template { function render (line 66) | pub fn render(&self, context: &C) -> Result { function write_to_file (line 85) | pub fn write_to_file(&self, path: impl AsRef, context: &C) -> Resu... function check_generated_by_crate2nix (line 98) | pub fn check_generated_by_crate2nix(path: impl AsRef) -> Result<()... type AbstractTemplate (line 117) | trait AbstractTemplate { method template (line 118) | fn template(&self) -> &'static str; method template_content (line 120) | fn template_content(&self) -> &'static str; method template (line 124) | fn template(&self) -> &'static str { method template_content (line 129) | fn template_content(&self) -> &'static str { constant TEMPLATES (line 134) | const TEMPLATES: &[&'static dyn AbstractTemplate] = &[&CARGO_NIX, &DEFAU... function create_tera (line 136) | fn create_tera() -> Tera { function cfg_to_nix_expr_filter (line 170) | fn cfg_to_nix_expr_filter( function cfg_to_nix_expr (line 199) | fn cfg_to_nix_expr(cfg: &CfgExpr) -> String { function test_render_cfg_to_nix_expr (line 261) | fn test_render_cfg_to_nix_expr() { function escape_nix_string (line 315) | pub fn escape_nix_string(raw_string: &str) -> String { FILE: crate2nix/src/resolve.rs type CrateDerivation (line 30) | pub struct CrateDerivation { method resolve (line 59) | pub fn resolve( function minimal_resolve (line 197) | pub fn minimal_resolve() { function configured_source_is_used_instead_of_local_directory (line 242) | pub fn configured_source_is_used_instead_of_local_directory() { function double_crate_with_rename (line 298) | pub fn double_crate_with_rename() { type BuildTarget (line 336) | pub struct BuildTarget { method new (line 347) | pub fn new(target: &Target, package_path: impl AsRef) -> Result<... type ResolvedSource (line 362) | pub enum ResolvedSource { method from (line 371) | fn from(source: crate::config::Source) -> Self { method new (line 443) | pub fn new( method git_or_local_directory (line 480) | fn git_or_local_directory( method fallback_to_local_directory (line 522) | fn fallback_to_local_directory( method relative_directory (line 545) | fn relative_directory( method sha256 (line 590) | pub fn sha256(&self) -> Option<&String> { method with_sha256 (line 599) | pub fn with_sha256(&self, sha256: String) -> Self { method without_sha256 (line 617) | pub fn without_sha256(&self) -> Self { type CratesIoSource (line 407) | pub struct CratesIoSource { method url (line 649) | pub fn url(&self) -> String { type RegistrySource (line 414) | pub struct RegistrySource { method url (line 661) | pub fn url(&self) -> String { type GitSource (line 422) | pub struct GitSource { type LocalDirectorySource (line 430) | pub struct LocalDirectorySource { type NixSource (line 435) | pub struct NixSource { constant GIT_SOURCE_PREFIX (line 440) | const GIT_SOURCE_PREFIX: &str = "git+"; method fmt (line 637) | fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { method fmt (line 667) | fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { method fmt (line 673) | fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { method fmt (line 679) | fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { method fmt (line 690) | fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { method fmt (line 696) | fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { function normalize_package_name (line 706) | fn normalize_package_name(package_name: &str) -> String { type ResolvedDependencies (line 717) | struct ResolvedDependencies<'a> { function new (line 724) | fn new( function filtered_dependencies (line 758) | fn filtered_dependencies( function sources_match (line 849) | fn sources_match( function serialize_deserialize (line 883) | fn serialize_deserialize(input: &I) -> O function resolved_dependencies_new_with_double_crate (line 893) | pub fn resolved_dependencies_new_with_double_crate() { function resolved_dependencies_filtered_dependencies_with_double_crate (line 942) | pub fn resolved_dependencies_filtered_dependencies_with_double_crate() { type ResolvedDependency (line 978) | pub struct ResolvedDependency { FILE: crate2nix/src/sources.rs function crates_io_source (line 18) | pub fn crates_io_source(name: String, version: Version) -> Result Result { constant FETCHED_SOURCES (line 82) | const FETCHED_SOURCES: &str = "crate2nix-sources"; function new (line 86) | pub fn new>>(path: P) -> FetchedSources<'a> { function project_dir (line 92) | fn project_dir(&self) -> PathBuf { function sources_nix (line 99) | fn sources_nix(&self) -> PathBuf { function regenerate_sources_nix (line 104) | pub fn regenerate_sources_nix(&self) -> Result<(), Error> { function fetch (line 131) | pub fn fetch(&self) -> Result { function get_cargo_tomls (line 148) | pub fn get_cargo_tomls(&self) -> Result, Error> { function download_and_link_out_of_tree_sources (line 217) | fn download_and_link_out_of_tree_sources( FILE: crate2nix/src/test.rs function generate_config (line 10) | pub fn generate_config() -> crate::GenerateConfig { type MetadataEnv (line 24) | pub struct MetadataEnv { method temp_dir (line 51) | pub fn temp_dir(&mut self) -> PathBuf { method mut_metadata (line 58) | fn mut_metadata(&mut self) -> &mut Metadata { method mut_resolve (line 62) | fn mut_resolve(&mut self) -> &mut Resolve { method add_package_and_node (line 66) | pub fn add_package_and_node<'a>(&'a mut self, name: &str) -> PackageAn... method metadata (line 81) | pub fn metadata(&self) -> Metadata { method indexed_metadata (line 85) | pub fn indexed_metadata(&self) -> crate::IndexedMetadata { method close (line 89) | pub fn close(&mut self) { method drop (line 31) | fn drop(&mut self) { method default (line 42) | fn default() -> Self { type PackageAndNode (line 97) | pub struct PackageAndNode<'a> { function make_root (line 104) | pub fn make_root(&mut self) -> &mut Self { function get_mut_package (line 114) | pub fn get_mut_package(&mut self) -> &mut Package { function get_package (line 117) | pub fn get_package(&self) -> &Package { function update_package (line 120) | pub fn update_package(&mut self, f: impl FnOnce(&mut Package)) -> &mut S... function get_mut_node (line 124) | pub fn get_mut_node(&mut self) -> &mut Node { function get_node (line 127) | pub fn get_node(&mut self) -> &Node { function update_node (line 130) | pub fn update_node(&mut self, f: impl FnOnce(&mut Node)) -> &mut Self { function version_and_package_id (line 134) | pub fn version_and_package_id(&mut self, version: &str) -> &mut Self { function add_dependency (line 140) | pub fn add_dependency<'b>(&'b mut self, name: &str) -> PackageAndNodeDep... type PackageAndNodeDep (line 173) | pub struct PackageAndNodeDep<'a> { function update_package_and_node (line 182) | pub fn update_package_and_node(&mut self, f: impl FnOnce(&mut PackageAnd... function get_package (line 186) | pub fn get_package(&self) -> &Package { function update_package (line 189) | pub fn update_package(&mut self, f: impl FnOnce(&mut Package)) -> &mut S... function update_node (line 193) | pub fn update_node(&mut self, f: impl FnOnce(&mut Node)) -> &mut Self { function get_mut_parent_package (line 197) | fn get_mut_parent_package(&mut self) -> &mut Package { function get_mut_package_dep (line 201) | pub fn get_mut_package_dep(&mut self) -> &mut Dependency { function update_package_dep (line 205) | pub fn update_package_dep(&mut self, f: impl FnOnce(&mut Dependency)) ->... function get_mut_parent_node (line 209) | fn get_mut_parent_node(&mut self) -> &mut Node { function get_mut_node_dep (line 213) | pub fn get_mut_node_dep(&mut self) -> &mut NodeDep { function update_node_dep (line 217) | pub fn update_node_dep(&mut self, f: impl FnOnce(&mut NodeDep)) -> &mut ... function version_and_package_id (line 221) | pub fn version_and_package_id(&mut self, version: &str) -> &mut Self { type TestPackage (line 241) | pub struct TestPackage { method close (line 247) | pub fn close(self) -> Result<(), std::io::Error> { type Target (line 253) | type Target = Package; method deref (line 255) | fn deref(&self) -> &Self::Target { method deref_mut (line 261) | fn deref_mut(&mut self) -> &mut Self::Target { function from_value_unwrap (line 266) | fn from_value_unwrap(json: impl Fn() -> serde_json::Value) -> T function crates_io_package_id (line 291) | pub fn crates_io_package_id(name: &str, version: &str) -> PackageId { function package (line 302) | pub fn package(name: &str, version: &str) -> TestPackage { function bin_target (line 323) | pub fn bin_target(package: &TestPackage, file: &str) -> cargo_metadata::... function lib_target (line 341) | pub fn lib_target(package: &TestPackage, file: &str) -> cargo_metadata::... function bin_package (line 361) | pub fn bin_package(name: &str, version: &str) -> TestPackage { function lib_package (line 369) | pub fn lib_package(name: &str, version: &str) -> TestPackage { function dependency_from_package (line 375) | pub fn dependency_from_package(package: &Package) -> Dependency { function test_package (line 393) | pub fn test_package() { function node (line 397) | pub fn node(package_id: &str) -> Node { function node_dep (line 407) | pub fn node_dep(name: &str, package_id: &PackageId) -> NodeDep { function node_with_deps (line 421) | pub fn node_with_deps(package_id: &str, deps: Vec) -> Node { function test_valid_node (line 429) | pub fn test_valid_node() { function empty_resolve (line 433) | pub fn empty_resolve() -> Resolve { function test_valid_empty_resolve (line 440) | pub fn test_valid_empty_resolve() { function empty_metadata (line 444) | pub fn empty_metadata() -> Metadata { function test_valid_empty_metadata (line 455) | pub fn test_valid_empty_metadata() { FILE: crate2nix/src/util.rs function find_duplicates (line 13) | pub fn find_duplicates<'a, T: Ord>(source: impl Iterator) ... FILE: crate2nix/tests/self_build_up_to_date.rs function self_up_to_date (line 12) | fn self_up_to_date() { function pregenerated_up_to_date (line 60) | fn pregenerated_up_to_date() { function assert_up_to_date (line 77) | fn assert_up_to_date(project_dir: &Path) { type TestConfig (line 132) | struct TestConfig { function get_test_configs (line 138) | fn get_test_configs() -> Result, Error> { FILE: sample_projects/aliased-dependencies/hello/src/lib.rs function greet (line 1) | pub fn greet() -> String { FILE: sample_projects/aliased-dependencies/src/main.rs function main (line 1) | pub fn main() { FILE: sample_projects/bin/src/main.rs function main (line 1) | fn main() { FILE: sample_projects/bin_required_features/src/bin/bin_not_to_be_compiled.rs function main (line 1) | pub fn main() { FILE: sample_projects/bin_required_features/src/main.rs function main (line 1) | fn main() { FILE: sample_projects/bin_with_default_features/src/main.rs function main (line 4) | fn main() { FILE: sample_projects/bin_with_dep_features/src/main.rs function main (line 4) | fn main() { FILE: sample_projects/bin_with_git_branch_dep/src/main.rs function main (line 1) | fn main() { FILE: sample_projects/bin_with_git_submodule_dep/src/main.rs function main (line 1) | fn main() { FILE: sample_projects/bin_with_lib_dep/src/main.rs function main (line 1) | fn main() { FILE: sample_projects/bin_with_lib_git_dep/src/main.rs function main (line 1) | fn main() { FILE: sample_projects/bin_with_rerenamed_lib_dep/src/main.rs function main (line 1) | fn main() { FILE: sample_projects/cdylib/src/lib.rs function some_function (line 2) | pub extern "C" fn some_function() { FILE: sample_projects/cfg-test/src/lib.rs function lib_test (line 4) | fn lib_test() { FILE: sample_projects/cfg-test/src/main.rs function main (line 1) | fn main() { FILE: sample_projects/cfg-test/tests/echo_foo_test.rs function echo_foo_test (line 2) | fn echo_foo_test() { function in_source_dir (line 7) | fn in_source_dir() { function exec_cowsay (line 13) | fn exec_cowsay() { FILE: sample_projects/codegen/build.rs function main (line 9) | fn main() { FILE: sample_projects/codegen/src/main.rs function main (line 5) | fn main() { FILE: sample_projects/conditional_features/optional/src/lib.rs function maybe_foo (line 4) | pub fn maybe_foo() -> &'static str { FILE: sample_projects/conditional_features/src/main.rs function main (line 1) | fn main() { FILE: sample_projects/cross_compile_build_dependencies/src/main.rs function main (line 1) | fn main() {} FILE: sample_projects/dependency_issue_65/src/main.rs function main (line 1) | fn main() { FILE: sample_projects/empty_cross/build.rs function main (line 3) | fn main() { FILE: sample_projects/future_util_multi_version/src/main.rs type StupidFuture01 (line 4) | struct StupidFuture01; type Item (line 7) | type Item = (); type Error (line 8) | type Error = String; method poll (line 10) | fn poll(&mut self) -> futures01::Poll { type StupidFuture (line 15) | struct StupidFuture; type Output (line 18) | type Output = (); method poll (line 20) | fn poll(self: Pin<&mut Self>, _: &mut Context<'_>) -> Poll &'static str { FILE: sample_workspace/bin/src/main.rs function main (line 1) | fn main() { FILE: sample_workspace/bin_with_cond_lib_dep/src/main.rs function main (line 1) | fn main() { FILE: sample_workspace/bin_with_default_features/src/main.rs function main (line 4) | fn main() { FILE: sample_workspace/bin_with_lib_dep/src/main.rs function main (line 1) | fn main() { FILE: sample_workspace/lib/src/lib.rs function hello_world (line 1) | pub fn hello_world(name: &str) { FILE: sample_workspace/lib_and_bin/src/lib.rs function hello_world (line 1) | pub fn hello_world() { FILE: sample_workspace/lib_and_bin/src/main.rs function main (line 3) | fn main() { FILE: sample_workspace/with_tera/src/main.rs function main (line 1) | fn main() { FILE: templates/flake-binary/src/main.rs function main (line 3) | fn main() {