-
Notifications
You must be signed in to change notification settings - Fork 43
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Do not require 'fn main()' in script files
Surround the script file with 'fn main() { .. }' if no line starts with 'fn main()'.
- Loading branch information
Showing
7 changed files
with
48 additions
and
5 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,13 @@ | ||
#!/usr/bin/env rust-script | ||
/*! | ||
This is merged into a default manifest in order to form the full package manifest: | ||
```cargo | ||
[dependencies] | ||
boolinator = "=0.1.0" | ||
``` | ||
*/ | ||
use boolinator::Boolinator; | ||
|
||
println!("--output--"); | ||
println!("{:?}", true.as_some(1)); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,9 @@ | ||
// cargo-deps: boolinator="=0.1.0" | ||
// You can also leave off the version number, in which case, it's assumed | ||
// to be "*". Also, the `cargo-deps` comment *must* be a single-line | ||
// comment, and it *must* be the first thing in the file, after the | ||
// hashbang. | ||
use boolinator::Boolinator; | ||
|
||
println!("--output--"); | ||
println!("{:?}", true.as_some(1)); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters