├── .gitignore ├── Cargo.lock ├── Cargo.toml ├── LICENSE-APACHE ├── LICENSE-MIT ├── README.md ├── examples ├── println.rs ├── read-ssh-key.rs ├── write-profile.rs └── write-to-homedir.rs ├── src ├── lib.rs └── main.rs └── tests ├── cli.rs ├── negative ├── read-ssh-key.stderr ├── read-ssh-key.toml ├── write-profile.stderr ├── write-profile.toml ├── write-to-homedir.stderr └── write-to-homedir.toml └── positive ├── build.stderr ├── build.toml ├── run-from-different-dir.stdout ├── run-from-different-dir.toml ├── run.stdout └── run.toml /.gitignore: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/bazhenov/safe-cargo/HEAD/.gitignore -------------------------------------------------------------------------------- /Cargo.lock: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/bazhenov/safe-cargo/HEAD/Cargo.lock -------------------------------------------------------------------------------- /Cargo.toml: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/bazhenov/safe-cargo/HEAD/Cargo.toml -------------------------------------------------------------------------------- /LICENSE-APACHE: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/bazhenov/safe-cargo/HEAD/LICENSE-APACHE -------------------------------------------------------------------------------- /LICENSE-MIT: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/bazhenov/safe-cargo/HEAD/LICENSE-MIT -------------------------------------------------------------------------------- /README.md: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/bazhenov/safe-cargo/HEAD/README.md -------------------------------------------------------------------------------- /examples/println.rs: -------------------------------------------------------------------------------- 1 | fn main() { 2 | println!("Hello, world!"); 3 | } 4 | -------------------------------------------------------------------------------- /examples/read-ssh-key.rs: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/bazhenov/safe-cargo/HEAD/examples/read-ssh-key.rs -------------------------------------------------------------------------------- /examples/write-profile.rs: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/bazhenov/safe-cargo/HEAD/examples/write-profile.rs -------------------------------------------------------------------------------- /examples/write-to-homedir.rs: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/bazhenov/safe-cargo/HEAD/examples/write-to-homedir.rs -------------------------------------------------------------------------------- /src/lib.rs: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/bazhenov/safe-cargo/HEAD/src/lib.rs -------------------------------------------------------------------------------- /src/main.rs: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/bazhenov/safe-cargo/HEAD/src/main.rs -------------------------------------------------------------------------------- /tests/cli.rs: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/bazhenov/safe-cargo/HEAD/tests/cli.rs -------------------------------------------------------------------------------- /tests/negative/read-ssh-key.stderr: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/bazhenov/safe-cargo/HEAD/tests/negative/read-ssh-key.stderr -------------------------------------------------------------------------------- /tests/negative/read-ssh-key.toml: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/bazhenov/safe-cargo/HEAD/tests/negative/read-ssh-key.toml -------------------------------------------------------------------------------- /tests/negative/write-profile.stderr: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/bazhenov/safe-cargo/HEAD/tests/negative/write-profile.stderr -------------------------------------------------------------------------------- /tests/negative/write-profile.toml: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/bazhenov/safe-cargo/HEAD/tests/negative/write-profile.toml -------------------------------------------------------------------------------- /tests/negative/write-to-homedir.stderr: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/bazhenov/safe-cargo/HEAD/tests/negative/write-to-homedir.stderr -------------------------------------------------------------------------------- /tests/negative/write-to-homedir.toml: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/bazhenov/safe-cargo/HEAD/tests/negative/write-to-homedir.toml -------------------------------------------------------------------------------- /tests/positive/build.stderr: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/bazhenov/safe-cargo/HEAD/tests/positive/build.stderr -------------------------------------------------------------------------------- /tests/positive/build.toml: -------------------------------------------------------------------------------- 1 | args = "build" 2 | fs.cwd = "../.." 3 | -------------------------------------------------------------------------------- /tests/positive/run-from-different-dir.stdout: -------------------------------------------------------------------------------- 1 | Hello, world! 2 | -------------------------------------------------------------------------------- /tests/positive/run-from-different-dir.toml: -------------------------------------------------------------------------------- 1 | args = "run --example println" 2 | fs.cwd = ".." 3 | -------------------------------------------------------------------------------- /tests/positive/run.stdout: -------------------------------------------------------------------------------- 1 | Hello, world! 2 | -------------------------------------------------------------------------------- /tests/positive/run.toml: -------------------------------------------------------------------------------- 1 | args = "run --example println" 2 | fs.cwd = "../.." 3 | --------------------------------------------------------------------------------