Comments (4)
Possibly shares subjects with #5376 but is not exactly the same problem.
from cargo.
However I use this crate as part of a workspace. So I also put the previous config.toml in my workspace .cargo/config.toml.
So it sounds like you have
workspace/
Cargo.toml
.cargo/config.toml
crateA/
.cargo/config.toml
Cargo.toml
Is that right?
is there a reason you do both configs, rather than just the workspace config?
As for de-duplicating, to do that would require us to have knowledge of rustc's CLI
- To detect related names for arguments (short and long forms, aliases)
- To know when
-abc
is-a -b -c
or-a bc
- To properly handle multiple values for an argument
Most CLIs are not written in a way to be able to reuse the same definition for parsing as de-duplicating, so we'd have to fork their CLI and keep it in sync.
from cargo.
So it sounds like you have
workspace/ Cargo.toml .cargo/config.toml crateA/ .cargo/config.toml Cargo.toml
Exactly.
is there a reason you do both configs, rather than just the workspace config?
The crateA
is versionned in its own git and I would like users to keep being able to just pull and run instead of having to mess with cargo config.
As for de-duplicating, to do that would require us to have knowledge of rustc's CLI
I understand that what I'm asking is far from trivial
from cargo.
Related Issues (20)
- 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 2
- 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 3
- maybe a typo issue that make this doc fragment confused HOT 4
- Cargo build/run not working - Bad CPU type in executable HOT 3
- Patching an indirect dependency with `package = "xxx"` renaming HOT 1
- process didn't exit successfully: (signal: 9, SIGKILL: kill) HOT 7
- Support setting target `runner` in the `[profile]` settings HOT 4
- Generate nix package from a crate HOT 2
- `nightly-2024-04-12` selects incorrect version of git dependency HOT 3
- cargo clean fails on projects using cxx for rust <> c++ bindings HOT 3
- ffmpeg-sys vs ffmpeg-sys-next HOT 3
- "cargo new" should add pre-commit hooks for autoformatter and linter HOT 7
- Nonsense rust-version values have a non-ideal error message HOT 1
- Emoji in manifest crashes annotate-snippets HOT 1
- Error building path dependency inside symlinked git repository HOT 2
- Non-default cargo locations prefer binaries from default locations over their own HOT 6
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.