mirror of
https://codeberg.org/icewind/nextcloud-config-parser.git
synced 2026-06-03 08:34:13 +02:00
readme and crate meta
This commit is contained in:
parent
fe8a4d1f44
commit
cbd172d6c8
3 changed files with 29 additions and 0 deletions
|
|
@ -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
17
README.md
Normal 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
8
examples/config.rs
Normal 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(())
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue