Comments (1)
This the situation I am running into. I use spirv-builder at runtime to compile rust source code into spirv for hot reloading of shaders. I thus often run cargo new to initialize the shader crate. However, I am forced to delete it from the workspace members each time, because this crate won't be compiled under the regular cargo workflow. Having a flag to disable the feature would be useful.
If I'm understanding this, it sounds like cargo new
is being invoked programmatically with expectations on the results? If so, then that is something intentionally not supported for cargo new
.
The assumptions for the not providing a flag were
- The command is meant to be used interactively
- Hand edits on top of what was generated are expected
- By creating a package in a workspace, the intent of wanting it to be a member is very strong.
For myself, I am hesitant to add many flags to customize the behavior of cargo new
. Cargo is designed to be opinionated and cargo new
in particular is not intended for heavy customization (deferring that to #5151). The closest I could see doing is #8365 since making it a workspace would mean we shouldn't add it as a workspace member.
from cargo.
Related Issues (20)
- "Cargo install" should provide download binaries only from crate.io if availibale rather than build these binaries every time when calling cargo install HOT 3
- cargo install [--git?] ignores .cargo/config.toml, making packages publishable-but-unbuildable, allthewhile they work when built normally HOT 8
- add: Use single quotes for target headers
- Combining `[patch]` and `-Zbuild-std` logs that patches are unused even when they are
- cargo publish refuses path= dependencies, even though it probably oughtn't HOT 3
- Cargo Tree: New format string parameter HOT 3
- 2024 implicit feature migration deletes dependency features HOT 8
- Update feature docs for no implicit features in 2024
- `cargo fmt` does not handle workspace member "Cargo.toml" being a symlink; gives error "Failed to find targets" HOT 1
- Bad error message when a weak dep features's depedency is an unused optional dependency HOT 1
- Bad error message when a strong dep features's depedency is an unused optional dependency HOT 2
- Suggested adding `dep:foo` to the `foo` feature if it exists for unused optional dependencies HOT 1
- `cargo package` includes multiple README files when the case is not all upper-case HOT 1
- `cargo check --all` can hide issues in what features are requested in Cargo.toml HOT 1
- Cannot publish when depending on a higher version of a dependency through path than registry
- omitting edition produces unexpected errors HOT 3
- Registry Authentication does not mention non-globle credential-provider
- Make `bench` profile set `debug = true` by default HOT 2
- `debug-assertions` are implicitly disabled when running `cargo test` with `opt-level=3` set from `rustflags`
- `cargo vendor` misses some files HOT 4
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from cargo.