thepowersgang / cmdline_words_parser Goto Github PK
View Code? Open in Web Editor NEWA rust string parser that extracts 'words' using the same rules as posix shells
A rust string parser that extracts 'words' using the same rules as posix shells
Hello,
Thanks for the nice crate. I'd like to ask if you could start to tag the releases as it allows for easy finding of what changed since last version.
Thanks in advance,
Hey thanks for writing this really useful crate! Sadly I noticed that updating to 0.2.0 causes my build on Windows is failing : (
Target and compiler:
stable-x86_64-pc-windows-msvc
rustc 1.42.0
Compiling cmdline_words_parser v0.2.0
error[E0433]: failed to resolve: could not find `unix` in `os`
--> src\lib.rs:84:35
|
84 | let _: &[u8] = <_ as ::std::os::unix::ffi::OsStrExt>::as_bytes(self);
| ^^^^ could not find `unix` in `os`
error: aborting due to previous error
For more information about this error, try `rustc --explain E0433`.
error: could not compile `cmdline_words_parser`.
To learn more, run the command again with --verbose.
I looked into it and it seems that std::os::unix::* is not available on windows platforms (https://doc.rust-lang.org/std/os/unix/index.html). Is line 84 "just" a safety check that can be disabled or rewritten on windows platforms?
I use this crate indirectly via the https://crates.io/crates/easy_process crate which uses this crate with default features enabled. So disabling std
is not possible here.
Thanks for your help! :)
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.