mirror of
https://github.com/edg-l/sitewriter.git
synced 2024-11-09 09:38:24 +00:00
upgrade deps, version 0.4.1
This commit is contained in:
parent
91a1ead43c
commit
5d93e6a617
14
Cargo.toml
14
Cargo.toml
|
@ -1,6 +1,6 @@
|
|||
[package]
|
||||
name = "sitewriter"
|
||||
version = "0.4.0"
|
||||
version = "0.4.1"
|
||||
authors = ["Edgar <git@edgarluque.com>"]
|
||||
edition = "2018"
|
||||
description = "A sitemap writing library."
|
||||
|
@ -13,13 +13,19 @@ categories = ["parsing"]
|
|||
|
||||
[dependencies]
|
||||
chrono = "0.4.19"
|
||||
derive_builder = "0.10.0"
|
||||
derive_builder = "0.10.2"
|
||||
quick-xml = "0.22.0"
|
||||
url = "2.2.1"
|
||||
url = "2.2.2"
|
||||
|
||||
[dev-dependencies]
|
||||
criterion = { version = "0.3.4", features = ["html_reports"] }
|
||||
criterion = { version = "0.3.5", features = ["html_reports"] }
|
||||
|
||||
[[bench]]
|
||||
name = "benchmark"
|
||||
harness = false
|
||||
|
||||
[profile.bench]
|
||||
debug = true
|
||||
|
||||
[profile.release]
|
||||
debug = true
|
||||
|
|
21
README.md
21
README.md
|
@ -1,16 +1,16 @@
|
|||
# Sitewriter
|
||||
[![Rust](https://github.com/edg-l/sitewriter/workflows/Rust/badge.svg)](https://github.com/edg-l/sitewriter/actions)
|
||||
[![crates.io](http://meritbadge.herokuapp.com/sitewriter)](https://crates.io/crates/sitewriter)
|
||||
[![License](https://img.shields.io/github/license/edg-l/sitewriter)](https://github.com/edg-l/sitewriter/blob/master/LICENSE)
|
||||
[![codecov](https://codecov.io/gh/edg-l/sitewriter/branch/master/graph/badge.svg?token=JKOQCRSCZU)](https://codecov.io/gh/edg-l/sitewriter)
|
||||
# sitewriter
|
||||
|
||||
A rust library to generate sitemaps.
|
||||
### A library to generate sitemaps.
|
||||
|
||||
[![Version](https://img.shields.io/crates/v/sitewriter)](https://crates.io/crates/sitewriter)
|
||||
[![Downloads](https://img.shields.io/crates/d/sitewriter)](https://crates.io/crates/sitewriter)
|
||||
[![License](https://img.shields.io/crates/l/sitewriter)](https://crates.io/crates/sitewriter)
|
||||
![Rust](https://github.com/edg-l/sitewriter-rs/workflows/Rust/badge.svg)
|
||||
[![Docs](https://docs.rs/sitewriter/badge.svg)](https://docs.rs/sitewriter)
|
||||
|
||||
It uses the [quick-xml](https://github.com/tafia/quick-xml) so it should be fast.
|
||||
|
||||
## Example
|
||||
|
||||
To run the examples use `cargo run --example gen_sitemap`
|
||||
### Example
|
||||
|
||||
```rust
|
||||
use chrono::prelude::*;
|
||||
|
@ -62,7 +62,8 @@ let urls = vec![
|
|||
},
|
||||
];
|
||||
|
||||
let result = Sitemap::into_str(&urls).unwrap();
|
||||
let result = Sitemap::generate_str(&urls).unwrap();
|
||||
println!("{}", result);
|
||||
```
|
||||
|
||||
License: MIT
|
||||
|
|
|
@ -1,5 +1,11 @@
|
|||
//! ## A library to generate sitemaps.
|
||||
//!
|
||||
//! [![Version](https://img.shields.io/crates/v/sitewriter)](https://crates.io/crates/sitewriter)
|
||||
//! [![Downloads](https://img.shields.io/crates/d/sitewriter)](https://crates.io/crates/sitewriter)
|
||||
//! [![License](https://img.shields.io/crates/l/sitewriter)](https://crates.io/crates/sitewriter)
|
||||
//! ![Rust](https://github.com/edg-l/sitewriter-rs/workflows/Rust/badge.svg)
|
||||
//! [![Docs](https://docs.rs/sitewriter/badge.svg)](https://docs.rs/sitewriter)
|
||||
//!
|
||||
//! It uses the [quick-xml](https://github.com/tafia/quick-xml) so it should be fast.
|
||||
//!
|
||||
//! ## Example
|
||||
|
|
Loading…
Reference in a new issue