https://github.com/liuchong/rustx
Rustx invoke cargo-script.
https://github.com/liuchong/rustx
rust rust-crate rust-lang rustlang shebang
Last synced: 3 months ago
JSON representation
Rustx invoke cargo-script.
- Host: GitHub
- URL: https://github.com/liuchong/rustx
- Owner: liuchong
- License: apache-2.0
- Created: 2019-02-15T13:56:39.000Z (over 6 years ago)
- Default Branch: master
- Last Pushed: 2024-07-08T10:19:06.000Z (10 months ago)
- Last Synced: 2025-01-10T09:33:29.486Z (4 months ago)
- Topics: rust, rust-crate, rust-lang, rustlang, shebang
- Language: Rust
- Homepage:
- Size: 8.79 KB
- Stars: 1
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE-APACHE
Awesome Lists containing this project
README
# rustx
[](https://github.com/liuchong/rustx/actions/workflows/rust.yml)
[](./LICENSE-APACHE)
[](./LICENSE-MIT)
[](https://crates.io/crates/rustx)
[](https://docs.rs/rustx)Rustx invoke cargo-script.
## Usage
1. `cargo install rustx`, `cargo install cargo-script`
2. create a file, for example, `hello.rs` as below, then `chmod +x hello.rs`, `./hello.rs`.
``` rust
#!/usr/bin/env rustxfn main() {
println!("Hello!");
}
```## License
Licensed under either of these:
* Apache License Version 2.0 [LICENSE-APACHE](LICENSE-APACHE)
* MIT License [LICENSE-MIT](LICENSE-MIT)### Contributing
Please sign a cla, thanks!