nzb-rs
nzb-rs is a spec compliant parser for NZB files.
Installation
nzb-rs is available on crates.io, so you can simply use cargo to install it.
cargo add nzb-rs
Optional features:
serde: Enables serialization and deserialization via serde.
Example
use ;
Safety
- This library must not panic. Any panic should be considered a bug and reported.
- This library uses
roxmltreefor parsing the NZB.roxmltreeis written entirely in safe Rust, so by Rust's guarantees the worst that a malicious NZB can do is to cause a panic.
License
Licensed under either of
- Apache License, Version 2.0 (LICENSE-APACHE or https://www.apache.org/licenses/LICENSE-2.0)
- MIT license (LICENSE-MIT or https://opensource.org/license/MIT)
at your option.
Contribution
Unless you explicitly state otherwise, any contribution intentionally submitted for inclusion in the work by you, as defined in the Apache-2.0 license, shall be dual licensed as above, without any additional terms or conditions.