nvd
Some functions about CPE and CVE
cve
- [x] download cve file,
- [x] json to proto
- [x] load proto
- [ ] cpe match
Usage
Add this to your Cargo.toml:
toml
[dependencies]
nvd = "0.1"
Examples
```rust
use nvd::cve::{initdir, initlog, loaddb, makedb, sync_cve};
[tokio::main]
async fn main() -> Result<(), Box> {
initlog();
let pathdir = initdir("./data").await?;
let _ = synccve(&pathdir).await?;
let _ = makedb(&pathdir).await?;
let _ = loaddb(&path_dir).await?;
Ok(())
}
```