nzb-rs
nzb-rs is a spec compliant parser for NZB files.
This library is a partial port of the Python nzb library.
While the parser API is similar to the original, it is not identical. Additionally, the meta editor API has not been implemented.
Installation
To install nzb-rs, add the following to your Cargo.toml:
[]
= "0.1.1"
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.