Comments (3)
The original RFC took a different approach, making version
implicit if path
is used, see https://github.com/rust-lang/rfcs/blob/master/text/2906-cargo-workspace-deduplicate.md#no-longer-need-both-version-and-path-to-publish-to-cratesio
This was rejected during stabilization which had some complications. I suspect this will run into some of the same. Not knowing what version you intend to use when publishing can get complicated.
If we limited the design to path dependencies only, that helps but that leaves off a good segment of users.
from cargo.
I suspect this will run into some of the same. Not knowing what version you intend to use when publishing can get complicated.
Then can't we alter publishing? This doesn't seem impossible, but it is indeed complicated. Where to start?
If we limited the design to path dependencies only, that helps but that leaves off a good segment of users.
What are other cases? I don't understand.
from cargo.
Then can't we alter publishing? This doesn't seem impossible, but it is indeed complicated. Where to start?
We'd need to do so in a way that is backwards compatible and where the solution is not worse than the problem.
The cargo team is limited in its bandwidth for efforts it can shepherd. For myself I can't commit to helping in driving this process. For an idea of what we are working on instead, see https://blog.rust-lang.org/inside-rust/2024/02/13/this-development-cycle-in-cargo-1-77.html
What are other cases? I don't understand.
The big problem is when you want publish a package with a path dependency. In that case, you need to specify the version
field for when its published.
If we make these implicit dependencies only exist with path dependencies, and not version dependencies, then we avoid a lot of the problems but then we make this only work for internal packages.
from cargo.
Related Issues (20)
- Support for loading command line arguments from a file HOT 2
- `cargo package --list` shows different whether `.git` is present or not HOT 4
- Include cargo_vcs_info.json even for dirty working directories HOT 12
- neither RUSTFLAGS nor RUSTDOCFLAGS passed to rustdoc by "cargo test --doc" HOT 3
- Option to disable installation with `install` HOT 4
- Error while running : cargo install spl-token-cli HOT 2
- cargo add to package within a virtual workspace behaves differently when translating package name HOT 1
- Renaming `kebab-case` cdylib target to `kebab_case` in metadata breaks cargo subcommands HOT 6
- Reference staging.crates.io in the Cargo book HOT 4
- Develop against local-only packages without `../../` or absolute paths in dependencies HOT 1
- vsock 0.4.0 fails to compile HOT 3
- Cargo updates registry index on every command
- `cargo package --package` includes all packages if no match is found HOT 2
- worker.js file should be placed into the output directory when targeting Emscripten with pthread support HOT 10
- Cargo packages duplicate files on case-insensitive file systems HOT 7
- Add warning for unused workspace dependency HOT 2
- non-blocking build error reported in example code since 0d62ae2 HOT 7
- Panic on use of libraries with proc-macro examples HOT 7
- maybe a typo issue that make this doc fragment confused HOT 4
- Cargo build/run not working - Bad CPU type in executable HOT 3
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.