Comments (5)
Thanks for pointing this one out! It seems a case that has been both missed during my changes and before that time also. I have fixed the issue and tested using a copy of your specific project also and can report success. Once the PR merges you should be good to update and go.
from diamond_drops.
A workaround is to change the parser.rs file line 7 to:
use std::os::windows::ffi::OsStrExt;
and add the line:
use osstringext::OsStrExt3;
after it. This will fix the build errors but will leave you with a nonstandard version of clap.
from diamond_drops.
So that we don't have to configure this manually, try:
#[cfg(not(target_os = "windows"))]
use std::os::unix::ffi::OsStrExt;
#[cfg(target_os = "windows")]
use osstringext::OsStrExt3;
From https://github.com/kbknapp/clap-rs/pull/1190/files#diff-3519f1369b63436798d9d7841c7940e2R672.
from diamond_drops.
Alternatively we could use https://github.com/kbknapp/clap-rs#optional-dependencies--features:
[dependencies.clap]
version = "2.31"
default-features = false
# Cherry-pick the features you'd like to use
features = [ "suggestions", "vec_map" ]
from diamond_drops.
The alternative method still doesn't build, but reintroducing the target checks in parser.rs of clap fixes the issue. We should raise an issue with clap about this.
from diamond_drops.
Related Issues (20)
- Add support to open UML diagram in different browsers and OSs other than Mac HOT 9
- Debugging with lldb doesn't work for me
- `cli` in cargo run -- mode --help and cargo run -- --help is misleading
- cargo run -- mode --help doesn't work HOT 1
- Use PyO3 for importing from Python HOT 1
- Better integration of the error-chain crate HOT 1
- Handle unused imports and variables before a production release
- Serialization for when blobs are larger than a collation. Not a high priority for now.
- P2P message layer HOT 1
- Separate protocol / SMC handler functionality from node functionality in different crates
- Node main function is not designed or written well HOT 4
- Fix run tasks to include output e.g. for make docs and make uml HOT 1
- Serialize a blob into an existing collation body. HOT 13
- Write benchmarks for existing code, e.g. blob serialization HOT 3
- remove lint unused_doc_comment HOT 3
- Add a changelog (use the release history)
- Merge changes to master to update the GitHub website
- Implement Gossipsub for sharding p2p HOT 2
- Data spec for sharding visualization
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 diamond_drops.