Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

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

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/
```