-
-
Notifications
You must be signed in to change notification settings - Fork 278
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
idea: integrate cargo-generate
to provide a maturin new
command
#615
Comments
I'm a little worried that Edit: opened cargo-generate/cargo-generate#444 |
👍 it definitely might have negative impacts on maturin's build time, even with the cargo dependency removed. |
Another way to do this is to just shell out to Things gets complicated if we add |
IMO there's two downsides to this, though neither of them game-changers:
Hmm good point. Would you be happier if I opened a PR to switch Rather than put a lot of work into this, perhaps I can start by making some |
openssl dependency comes from libgit2 so it's not that easy. $ cargo tree -i openssl-sys
openssl-sys v0.9.66
├── libgit2-sys v0.12.22+1.1.0
│ └── git2 v0.13.21
│ └── cargo-generate v0.9.0 (/Users/messense/Projects/cargo-generate)
└── libssh2-sys v0.2.21
└── libgit2-sys v0.12.22+1.1.0 (*)
Sounds good. |
I think it'd be really cool if
maturin
(or PyO3) provided a few template projects which users could use to get started with their projects.cargo-generate
already exists, so it's of course possible to make a few template repos and leave it there.However, I think that users coming from Python to Rust for the first time would probably prefer to learn fewer tools, so wrapping up
cargo-generate
inside amaturin new
command would be a nice experience for them.It looks like it shouldn't be too hard to call
cargo_generate::generate
directly. I think the hard work would be creating and maintaining template repos.What do you think?
The text was updated successfully, but these errors were encountered: