-
Notifications
You must be signed in to change notification settings - Fork 111
Open
Labels
specificationIssue regarding fpm manifest and modelIssue regarding fpm manifest and model
Description
It would work just like cargo init
:
$ cargo init myproject1
Created binary (application) package
$ tree -a myproject1
myproject1
├── Cargo.toml
├── .git
│ ├── config
│ ...
├── .gitignore
└── src
└── main.rs
10 directories, 18 files
As you can see, it starts a git repository, and so on. It is ready to compile, so:
~$ cd myproject1
myproject1(master)$ cat src/main.rs
fn main() {
println!("Hello, world!");
}
myproject1(master)$ cargo run
Compiling myproject1 v0.1.0 (/tmp/myproject1)
Finished dev [unoptimized + debuginfo] target(s) in 1.25s
Running `target/debug/myproject1`
Hello, world!
If you just call cargo init
, then it creates a new project in the current directory. Similar to git init
.
ivan-pi, epagone and milancurcic
Metadata
Metadata
Assignees
Labels
specificationIssue regarding fpm manifest and modelIssue regarding fpm manifest and model