Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/kamiyaa/wordexp-rs
Rust wrapper around wordexp c library
https://github.com/kamiyaa/wordexp-rs
ffi rust wordexp
Last synced: 29 days ago
JSON representation
Rust wrapper around wordexp c library
- Host: GitHub
- URL: https://github.com/kamiyaa/wordexp-rs
- Owner: kamiyaa
- License: bsd-3-clause
- Created: 2019-05-26T12:49:07.000Z (over 5 years ago)
- Default Branch: master
- Last Pushed: 2019-05-26T21:45:52.000Z (over 5 years ago)
- Last Synced: 2024-11-19T04:01:07.317Z (about 1 month ago)
- Topics: ffi, rust, wordexp
- Language: Rust
- Homepage:
- Size: 8.79 KB
- Stars: 2
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# wordexp-rs
[![Docs](https://docs.rs/wordexp/badge.svg)](https://docs.rs/wordexp/)
Rust wrapper around wordexp c library
## Examples
```rust
use wordexp::{wordexp, Wordexp};std::env::set_var("HOME", "/home/wordexp");
match wordexp("~/", Wordexp::new(0), 0) {
Ok(wexp) => for exp in wexp {
println!("exp: {}", exp);
},
Err(e) => eprintln!("Error: {}", e);
}
/// output:
/// exp: /home/wordexp/
```