├── .gitignore ├── .travis.yml ├── CHANGELOG.md ├── Cargo.lock ├── Cargo.toml ├── LICENSE ├── README.md ├── src ├── bin │ └── run-cargo-script.rs ├── consts.rs ├── error.rs ├── file_assoc.rs ├── main.rs ├── manifest.rs ├── platform.rs ├── templates.rs └── util.rs └── tests ├── data ├── script-args.rs ├── script-cs-env.rs ├── script-explicit.rs ├── script-features.rs ├── script-full-block.rs ├── script-full-line.rs ├── script-has.weird§chars!.rs ├── script-invalid-doc-comment.rs ├── script-no-deps.rs ├── script-short.rs ├── script-slow-output.rs ├── script-test.rs ├── slow-build │ ├── .gitignore │ ├── Cargo.toml │ ├── slow-build-build.rs │ └── slow-build-lib.rs └── templates │ ├── boolinate.rs │ ├── override │ └── expr.rs │ └── shout.rs ├── integration.rs ├── tests ├── expr.rs ├── script.rs └── version.rs └── util └── mod.rs /.gitignore: -------------------------------------------------------------------------------- 1 | target 2 | /local 3 | /.cargo 4 | -------------------------------------------------------------------------------- /.travis.yml: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/DanielKeep/cargo-script/HEAD/.travis.yml -------------------------------------------------------------------------------- /CHANGELOG.md: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/DanielKeep/cargo-script/HEAD/CHANGELOG.md -------------------------------------------------------------------------------- /Cargo.lock: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/DanielKeep/cargo-script/HEAD/Cargo.lock -------------------------------------------------------------------------------- /Cargo.toml: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/DanielKeep/cargo-script/HEAD/Cargo.toml -------------------------------------------------------------------------------- /LICENSE: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/DanielKeep/cargo-script/HEAD/LICENSE -------------------------------------------------------------------------------- /README.md: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/DanielKeep/cargo-script/HEAD/README.md -------------------------------------------------------------------------------- /src/bin/run-cargo-script.rs: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/DanielKeep/cargo-script/HEAD/src/bin/run-cargo-script.rs -------------------------------------------------------------------------------- /src/consts.rs: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/DanielKeep/cargo-script/HEAD/src/consts.rs -------------------------------------------------------------------------------- /src/error.rs: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/DanielKeep/cargo-script/HEAD/src/error.rs -------------------------------------------------------------------------------- /src/file_assoc.rs: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/DanielKeep/cargo-script/HEAD/src/file_assoc.rs -------------------------------------------------------------------------------- /src/main.rs: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/DanielKeep/cargo-script/HEAD/src/main.rs -------------------------------------------------------------------------------- /src/manifest.rs: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/DanielKeep/cargo-script/HEAD/src/manifest.rs -------------------------------------------------------------------------------- /src/platform.rs: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/DanielKeep/cargo-script/HEAD/src/platform.rs -------------------------------------------------------------------------------- /src/templates.rs: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/DanielKeep/cargo-script/HEAD/src/templates.rs -------------------------------------------------------------------------------- /src/util.rs: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/DanielKeep/cargo-script/HEAD/src/util.rs -------------------------------------------------------------------------------- /tests/data/script-args.rs: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/DanielKeep/cargo-script/HEAD/tests/data/script-args.rs -------------------------------------------------------------------------------- /tests/data/script-cs-env.rs: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/DanielKeep/cargo-script/HEAD/tests/data/script-cs-env.rs -------------------------------------------------------------------------------- /tests/data/script-explicit.rs: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/DanielKeep/cargo-script/HEAD/tests/data/script-explicit.rs -------------------------------------------------------------------------------- /tests/data/script-features.rs: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/DanielKeep/cargo-script/HEAD/tests/data/script-features.rs -------------------------------------------------------------------------------- /tests/data/script-full-block.rs: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/DanielKeep/cargo-script/HEAD/tests/data/script-full-block.rs -------------------------------------------------------------------------------- /tests/data/script-full-line.rs: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/DanielKeep/cargo-script/HEAD/tests/data/script-full-line.rs -------------------------------------------------------------------------------- /tests/data/script-has.weird§chars!.rs: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/DanielKeep/cargo-script/HEAD/tests/data/script-has.weird§chars!.rs -------------------------------------------------------------------------------- /tests/data/script-invalid-doc-comment.rs: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/DanielKeep/cargo-script/HEAD/tests/data/script-invalid-doc-comment.rs -------------------------------------------------------------------------------- /tests/data/script-no-deps.rs: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/DanielKeep/cargo-script/HEAD/tests/data/script-no-deps.rs -------------------------------------------------------------------------------- /tests/data/script-short.rs: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/DanielKeep/cargo-script/HEAD/tests/data/script-short.rs -------------------------------------------------------------------------------- /tests/data/script-slow-output.rs: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/DanielKeep/cargo-script/HEAD/tests/data/script-slow-output.rs -------------------------------------------------------------------------------- /tests/data/script-test.rs: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/DanielKeep/cargo-script/HEAD/tests/data/script-test.rs -------------------------------------------------------------------------------- /tests/data/slow-build/.gitignore: -------------------------------------------------------------------------------- 1 | /Cargo.lock 2 | -------------------------------------------------------------------------------- /tests/data/slow-build/Cargo.toml: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/DanielKeep/cargo-script/HEAD/tests/data/slow-build/Cargo.toml -------------------------------------------------------------------------------- /tests/data/slow-build/slow-build-build.rs: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/DanielKeep/cargo-script/HEAD/tests/data/slow-build/slow-build-build.rs -------------------------------------------------------------------------------- /tests/data/slow-build/slow-build-lib.rs: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /tests/data/templates/boolinate.rs: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/DanielKeep/cargo-script/HEAD/tests/data/templates/boolinate.rs -------------------------------------------------------------------------------- /tests/data/templates/override/expr.rs: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/DanielKeep/cargo-script/HEAD/tests/data/templates/override/expr.rs -------------------------------------------------------------------------------- /tests/data/templates/shout.rs: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/DanielKeep/cargo-script/HEAD/tests/data/templates/shout.rs -------------------------------------------------------------------------------- /tests/integration.rs: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/DanielKeep/cargo-script/HEAD/tests/integration.rs -------------------------------------------------------------------------------- /tests/tests/expr.rs: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/DanielKeep/cargo-script/HEAD/tests/tests/expr.rs -------------------------------------------------------------------------------- /tests/tests/script.rs: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/DanielKeep/cargo-script/HEAD/tests/tests/script.rs -------------------------------------------------------------------------------- /tests/tests/version.rs: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/DanielKeep/cargo-script/HEAD/tests/tests/version.rs -------------------------------------------------------------------------------- /tests/util/mod.rs: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/DanielKeep/cargo-script/HEAD/tests/util/mod.rs --------------------------------------------------------------------------------