The Rust package manager
677 matches across 8 categories. Click a row to expand file-level details.
| Severity | File | Line | Snippet |
|---|---|---|---|
| LOW | deny.toml | 1 | # This template contains all of the possible sections and their default values |
| LOW | deny.toml | 21 | # `target_family = "unix"` configuration, that only having windows targets in |
| LOW | deny.toml | 41 | #exclude = [] |
| LOW | deny.toml | 61 | |
| LOW | deny.toml | 101 | "ISC", |
| LOW | deny.toml | 121 | # The package spec the clarification applies to |
| LOW | deny.toml | 141 | # One or more private registries that you might publish crates to, if a crate |
| LOW | deny.toml | 161 | highlight = "all" |
| LOW | deny.toml | 181 | #{ crate = "ansi_term@0.11.0", wrappers = ["this-crate-directly-depends-on-ansi_term"] }, |
| LOW | deny.toml | 201 | # "webpki-roots", |
| LOW | deny.toml | 221 | # This section is considered when running `cargo deny check sources`. |
| LOW | publish.py | 1 | #!/usr/bin/env python3 |
| LOW | credential/cargo-credential/src/error.rs | 1 | use serde::{Deserialize, Serialize}; |
| LOW | credential/cargo-credential/src/error.rs | 21 | |
| LOW | credential/cargo-credential/src/lib.rs | 1 | //! Helper library for writing Cargo credential providers. |
| LOW | credential/cargo-credential/src/lib.rs | 21 | //! and an unsupported index URL is passed to the provider, it should respond with |
| LOW | credential/cargo-credential/src/lib.rs | 81 | pub struct CredentialRequest<'a> { |
| LOW | credential/cargo-credential/src/lib.rs | 141 | /// A record of what kind of operation is happening that we should generate a token for. |
| LOW | credential/cargo-credential/src/lib.rs | 201 | /// Do not cache this result. |
| LOW | credential/cargo-credential/src/secret.rs | 1 | use std::fmt; |
| LOW | credential/cargo-credential/src/secret.rs | 21 | #[serde(transparent)] |
| LOW | crates/home/src/env.rs | 81 | } |
| LOW | crates/home/src/lib.rs | 1 | //! Canonical definitions of `home_dir`, `cargo_home`, and `rustup_home`. |
| LOW | crates/home/src/lib.rs | 21 | //! > crate may make major changes to its APIs or be deprecated without warning. |
| LOW | crates/home/src/lib.rs | 41 | /// Some(path) if !path.as_os_str().is_empty() => println!("{}", path.display()), |
| LOW | crates/home/src/lib.rs | 61 | /// by the `home_dir` function. |
| LOW | crates/home/src/lib.rs | 81 | /// For more details, see [`cargo_home`](fn.cargo_home.html). |
| LOW | crates/home/src/lib.rs | 101 | /// |
| LOW | crates/cargo-test-support/src/cross_compile.rs | 1 | //! Support for cross-compile tests with the `--target` flag. |
| LOW | crates/cargo-test-support/src/cross_compile.rs | 61 | |
| LOW | crates/cargo-test-support/src/registry.rs | 1 | //! Interact with the [`TestRegistry`] |
| LOW | crates/cargo-test-support/src/registry.rs | 21 | //! .file("src/lib.rs", r#" |
| LOW | crates/cargo-test-support/src/registry.rs | 81 | /// request here. For example, `api/v1/crates/new` is the result of publishing a crate. |
| LOW | crates/cargo-test-support/src/registry.rs | 541 | /// `.cargo/config` file to ensure that dependencies will use these packages |
| LOW | crates/cargo-test-support/src/registry.rs | 1281 | } |
| LOW | crates/cargo-test-support/src/registry.rs | 1361 | /// ```toml |
| LOW | crates/cargo-test-support/src/lib.rs | 1 | //! # Cargo test support. |
| LOW | crates/cargo-test-support/src/lib.rs | 21 | //! use cargo_test_support::prelude::*; |
| LOW | crates/cargo-test-support/src/lib.rs | 221 | self.src.parent().unwrap() |
| LOW | crates/cargo-test-support/src/lib.rs | 461 | glob::glob(pattern.to_str().expect("failed to convert pattern to str")) |
| LOW | crates/cargo-test-support/src/lib.rs | 481 | /// |
| LOW | crates/cargo-test-support/src/lib.rs | 601 | } |
| LOW | crates/cargo-test-support/src/lib.rs | 641 | pub fn with_process_builder(mut self, p: ProcessBuilder) -> Execs { |
| LOW | crates/cargo-test-support/src/lib.rs | 661 | /// However, `""` may be preferred for intentionally empty output so people don't accidentally |
| LOW | crates/cargo-test-support/src/lib.rs | 681 | /// use cargo_test_support::str; |
| LOW | crates/cargo-test-support/src/lib.rs | 701 | /// "#].is_json().against_jsonlines()); |
| LOW | crates/cargo-test-support/src/lib.rs | 721 | /// bless a change. |
| LOW | crates/cargo-test-support/src/lib.rs | 741 | /// use cargo_test_support::execs; |
| LOW | crates/cargo-test-support/src/lib.rs | 781 | /// Removes exit code check for the process. |
| LOW | crates/cargo-test-support/src/lib.rs | 801 | pub fn with_stdout_contains<S: ToString>(&mut self, expected: S) -> &mut Self { |
| LOW | crates/cargo-test-support/src/lib.rs | 821 | } |
| LOW | crates/cargo-test-support/src/lib.rs | 841 | self.expect_stdout_not_contains.push(expected.to_string()); |
| LOW | crates/cargo-test-support/src/lib.rs | 861 | pub fn with_stderr_does_not_contain<S: ToString>(&mut self, expected: S) -> &mut Self { |
| LOW | crates/cargo-test-support/src/lib.rs | 881 | /// |
| LOW | crates/cargo-test-support/src/lib.rs | 1421 | // should hopefully not surprise us as we add cargo features over time and |
| LOW | crates/cargo-test-support/src/paths.rs | 401 | /// - `staticlib` |
| LOW | crates/cargo-test-support/src/paths.rs | 521 | /// This takes the test location (std::file!() should be passed) and the test name |
| LOW | crates/cargo-test-support/src/git.rs | 1 | //! # Git Testing Support |
| LOW | crates/cargo-test-support/src/git.rs | 21 | //! let p = project() |
| LOW | crates/cargo-test-support/src/compare.rs | 1 | //! Routines for comparing and diffing output. |
| 559 more matches not shown… | |||
| Severity | File | Line | Snippet |
|---|---|---|---|
| MEDIUM | crates/cargo-test-support/src/git.rs | 3 | //! ## Creating a git dependency |
| MEDIUM | crates/cargo-util/src/paths.rs | 807 | # This file is a cache directory tag created by cargo. |
| MEDIUM | tests/testsuite/generate_lockfile.rs | 168 | assert!(lock0.starts_with("# This file is automatically @generated by Cargo.\n# It is not intended for manual editin |
| MEDIUM | tests/testsuite/generate_lockfile.rs | 177 | assert!(lock2.starts_with("# This file is automatically @generated by Cargo.\r\n# It is not intended for manual edit |
| MEDIUM | tests/testsuite/generate_lockfile.rs | 355 | # This file is automatically @generated by Cargo. |
| MEDIUM | tests/testsuite/patch.rs | 2946 | # This file is automatically @generated by Cargo. |
| MEDIUM | tests/testsuite/update.rs | 860 | assert!(lockfile.starts_with("# This file is automatically @generated by Cargo.\n# It is not intended for manual edi |
| MEDIUM | tests/testsuite/package.rs | 3655 | let cargo_lock_contents = r#"# This file is automatically @generated by Cargo. |
| MEDIUM | tests/testsuite/package.rs | 3758 | let cargo_lock_contents = r#"# This file is automatically @generated by Cargo. |
| MEDIUM | tests/testsuite/package.rs | 3874 | let cargo_lock_contents = r#"# This file is automatically @generated by Cargo. |
| MEDIUM | tests/testsuite/package.rs | 5837 | # This file is automatically @generated by Cargo. |
| MEDIUM | tests/testsuite/package.rs | 6408 | r#"# This file is automatically @generated by Cargo. |
| MEDIUM | tests/testsuite/git.rs | 3411 | r#"# This file is automatically @generated by Cargo. |
| MEDIUM | tests/testsuite/git.rs | 3478 | r#"# This file is automatically @generated by Cargo. |
| MEDIUM | tests/testsuite/publish.rs | 1699 | # This file is automatically @generated by Cargo. |
| MEDIUM | tests/testsuite/alt_registry.rs | 1928 | # This file is automatically @generated by Cargo. |
| MEDIUM | tests/testsuite/lockfile_compat.rs | 22 | # This file is automatically @generated by Cargo. |
| MEDIUM | tests/testsuite/lockfile_compat.rs | 174 | # This file is automatically @generated by Cargo. |
| MEDIUM | tests/testsuite/lockfile_compat.rs | 408 | # This file is automatically @generated by Cargo. |
| MEDIUM | tests/testsuite/lockfile_compat.rs | 434 | # This file is automatically @generated by Cargo. |
| MEDIUM | tests/testsuite/lockfile_compat.rs | 474 | # This file is automatically @generated by Cargo. |
| MEDIUM | tests/testsuite/lockfile_compat.rs | 532 | r#"# This file is automatically @generated by Cargo. |
| MEDIUM | tests/testsuite/lockfile_compat.rs | 580 | r#"# This file is automatically @generated by Cargo. |
| MEDIUM | tests/testsuite/lockfile_compat.rs | 657 | r#"# This file is automatically @generated by Cargo. |
| MEDIUM | tests/testsuite/lockfile_compat.rs | 733 | r#"# This file is automatically @generated by Cargo. |
| MEDIUM | tests/testsuite/lockfile_compat.rs | 794 | r#"# This file is automatically @generated by Cargo. |
| MEDIUM | tests/testsuite/lockfile_compat.rs | 868 | r#"# This file is automatically @generated by Cargo. |
| MEDIUM | tests/testsuite/lockfile_compat.rs | 970 | r#"# This file is automatically @generated by Cargo. |
| MEDIUM | tests/testsuite/lockfile_compat.rs | 1066 | r#"# This file is automatically @generated by Cargo. |
| MEDIUM | tests/testsuite/lockfile_compat.rs | 1150 | r#"# This file is automatically @generated by Cargo. |
| MEDIUM | tests/testsuite/lockfile_compat.rs | 1169 | r#"# This file is automatically @generated by Cargo. |
| MEDIUM | tests/testsuite/lockfile_compat.rs | 1187 | r#"# This file is automatically @generated by Cargo. |
| MEDIUM | src/cargo/ops/lockfile.rs | 133 | let marker_line = "# This file is automatically @generated by Cargo."; |
| Severity | File | Line | Snippet |
|---|---|---|---|
| MEDIUM | src/cargo/core/compiler/fingerprint/dep_info.rs | 571 | // Buffer size is the recommended amount to fully leverage SIMD instructions on AVX-512 as per |
| MEDIUM | src/cargo/core/compiler/job_queue/mod.rs | 1213 | // faithful representation of what's happening. This is somewhat nuanced |
| MEDIUM | src/cargo/util/graph.rs | 130 | // Note that this implementation isn't the most robust per se, we'll |
| MEDIUM | src/cargo/sources/path.rs | 832 | // it with git-support to leverage ignored files and to avoid pulling in entire |
| MEDIUM | src/cargo/sources/git/utils.rs | 774 | // Essentially, if `attempts == 2` then in theory the only error was |
| Severity | File | Line | Snippet |
|---|---|---|---|
| LOW | tests/testsuite/update.rs | 1653 | # Check if formatting is preserved. Nothing here should change, due to dry-run. |
| LOW | tests/testsuite/update.rs | 1663 | # Check if formatting is preserved. Nothing here should change, due to dry-run. |
| LOW | tests/testsuite/update.rs | 1750 | # Check if formatting is preserved |
| LOW | tests/testsuite/update.rs | 1762 | # Check if formatting is preserved |
| LOW | tests/testsuite/update.rs | 1930 | # Check if formatting is preserved |
| LOW | tests/testsuite/update.rs | 1946 | # Check if formatting is preserved |
| LOW | tests/testsuite/update.rs | 2131 | # Check if formatting is preserved |
| LOW | .github/workflows/main.yml | 54 | # Check if all jobs that we depend on (in the needs array) were successful. |
| Severity | File | Line | Snippet |
|---|---|---|---|
| LOW | crates/cargo-test-support/src/git.rs | 163 | t!(cfg.set_str("user.email", "foo@bar.com")); |
| LOW | tests/testsuite/package.rs | 3728 | Lorem ipsum dolor sit amet, consectetur adipiscing elit, sed do eiusmod tempor incididunt |
| LOW | tests/testsuite/package.rs | 3728 | Lorem ipsum dolor sit amet, consectetur adipiscing elit, sed do eiusmod tempor incididunt |
| LOW | tests/testsuite/package.rs | 3844 | Lorem ipsum dolor sit amet, consectetur adipiscing elit, sed do eiusmod tempor incididunt |
| LOW | tests/testsuite/package.rs | 3844 | Lorem ipsum dolor sit amet, consectetur adipiscing elit, sed do eiusmod tempor incididunt |
| LOW | tests/testsuite/git.rs | 2923 | cfg.set_str("user.email", "foo@bar.com").unwrap(); |
| LOW | tests/testsuite/git_gc.rs | 48 | cfg.set_str("user.email", "foo@bar.com").unwrap(); |
| LOW | tests/testsuite/git_gc.rs | 51 | cfg.set_str("user.email", "foo@bar.com").unwrap(); |
| Severity | File | Line | Snippet |
|---|---|---|---|
| HIGH | src/cargo/ops/cargo_update.rs | 138 | // so their dependencies can be updated as requested |
| Severity | File | Line | Snippet |
|---|---|---|---|
| LOW | crates/cargo-util/src/paths.rs | 545 | // For Windows, we need to check if the file is a symlink to a directory |
| LOW | src/cargo/util/context/mod.rs | 1625 | /// The purpose of this function is to aid in the transition to using |
| Severity | File | Line | Snippet |
|---|---|---|---|
| LOW | src/cargo/core/compiler/build_context/mod.rs | 42 | /// # How to use |