Comments (4)
DONE .
from shadow-rs.
from shadow-rs.
Hi @davidkna . Now shadow-rs 0.10.0 version can support this question.
Notice :Now, you can use Upper const CLAP_LONG_VERSION
, not clap_long_version()
E.g:
[dependencies]
shadow-rs = "0.10.1"
[build-dependencies]
shadow-rs = "0.10.1"
use clap::Parser;
use crate::build::CLAP_LONG_VERSION;
use shadow_rs::shadow;
shadow!(build);
#[derive(Parser, Debug)]
#[clap(long_version = CLAP_LONG_VERSION)]
struct Config {
foo: String,
}
fn main() {
println!("{:?}", Config::parse());
}
from shadow-rs.
Thanks!
from shadow-rs.
Related Issues (20)
- Fail to build using cross HOT 2
- integrate cross into github action HOT 1
- make shadow-rs inner data_time public
- Set time crate OffsetDateTime human_format
- Allow disabling the CARGO_TREE variable in the output as it can contain sensitive information HOT 3
- `ShadowError` doesn't implement `std::error::Error` HOT 2
- Static dependency tree HOT 1
- Support CARGO_MANIFEST_DIR ? HOT 3
- A way to get closest tag from current commit HOT 7
- Refactor code HOT 1
- Only support reproducible output by default HOT 5
- Consider generating a struct, or otherwise simplify usage HOT 2
- Changelog? HOT 2
- indexing may cause panic HOT 3
- Update the chrono dependency HOT 1
- GitLab/Github CI support HOT 2
- Is it possible to support `no_std` for this project? HOT 4
- The build::SHORT_COMMIT is not latest HOT 5
- Order of generated code is not reproducible HOT 1
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 shadow-rs.