readme and crate meta

This commit is contained in:
Robin Appelman 2021-05-03 17:23:08 +02:00
commit cbd172d6c8
3 changed files with 29 additions and 0 deletions

View file

@ -1,8 +1,12 @@
[package]
name = "nextcloud-config-parser"
description = "Rust parser for nextcloud config files"
version = "0.1.0"
authors = ["Robin Appelman <robin@icewind.nl>"]
edition = "2018"
license = "MIT OR Apache-2.0"
repository = "https://github.com/icewind1991/nextcloud-config-parser"
documentation = "https://docs.rs/nextcloud-config-parser"
[dependencies]
redis = { version = "0.20", features = ["tokio-comp", "aio", "cluster"] }

17
README.md Normal file
View file

@ -0,0 +1,17 @@
# nextcloud-config-parser
Rust parser for nextcloud config files.
## Usage
```rust
use nextcloud_config_parser::{parse, Error};
fn main() -> Result<(), Error> {
let config = parse("tests/configs/basic.php")?;
dbg!(config);
Ok(())
}
```

8
examples/config.rs Normal file
View file

@ -0,0 +1,8 @@
use nextcloud_config_parser::{parse, Error};
fn main() -> Result<(), Error> {
let config = parse("tests/configs/basic.php")?;
dbg!(config);
Ok(())
}