Update metadata
This commit is contained in:
parent
f49150f85b
commit
35ea81f136
|
@ -7,12 +7,16 @@ readme = "README.md"
|
||||||
keywords = ["encoding"]
|
keywords = ["encoding"]
|
||||||
repository = "https://github.com/alexcrichton/toml-rs"
|
repository = "https://github.com/alexcrichton/toml-rs"
|
||||||
homepage = "https://github.com/alexcrichton/toml-rs"
|
homepage = "https://github.com/alexcrichton/toml-rs"
|
||||||
documentation = "http://alexcrichton.com/toml-rs"
|
documentation = "https://docs.rs/toml"
|
||||||
description = """
|
description = """
|
||||||
A native Rust encoder and decoder of TOML-formatted files and streams. Provides
|
A native Rust encoder and decoder of TOML-formatted files and streams. Provides
|
||||||
implementations of the standard Encodable/Decodable traits for TOML data to
|
implementations of the standard Serialize/Deserialize traits for TOML data to
|
||||||
facilitate deserializing and serializing Rust structures.
|
facilitate deserializing and serializing Rust structures.
|
||||||
"""
|
"""
|
||||||
|
categories = ["config", "encoding", "parser-implementations"]
|
||||||
|
|
||||||
|
[badges]
|
||||||
|
travis-ci = { repository = "alexcrichton/toml-rs" }
|
||||||
|
|
||||||
[dependencies]
|
[dependencies]
|
||||||
serde = "0.9.6"
|
serde = "0.9.6"
|
||||||
|
|
44
README.md
44
README.md
|
@ -4,50 +4,24 @@
|
||||||
[![Coverage Status](https://coveralls.io/repos/alexcrichton/toml-rs/badge.svg?branch=master&service=github)](https://coveralls.io/github/alexcrichton/toml-rs?branch=master)
|
[![Coverage Status](https://coveralls.io/repos/alexcrichton/toml-rs/badge.svg?branch=master&service=github)](https://coveralls.io/github/alexcrichton/toml-rs?branch=master)
|
||||||
[![Latest Version](https://img.shields.io/crates/v/toml.svg)](https://crates.io/crates/toml)
|
[![Latest Version](https://img.shields.io/crates/v/toml.svg)](https://crates.io/crates/toml)
|
||||||
|
|
||||||
[Documentation](http://alexcrichton.com/toml-rs)
|
[Documentation](https://docs.rs/toml)
|
||||||
|
|
||||||
A [TOML][toml] decoder and encoder for Rust. This library is currently compliant with
|
A [TOML][toml] decoder and encoder for Rust. This library is currently compliant
|
||||||
the v0.4.0 version of TOML. This library will also likely continue to stay up to
|
with the v0.4.0 version of TOML. This library will also likely continue to stay
|
||||||
date with the TOML specification as changes happen.
|
up to date with the TOML specification as changes happen.
|
||||||
|
|
||||||
[toml]: https://github.com/toml-lang/toml
|
[toml]: https://github.com/toml-lang/toml
|
||||||
|
|
||||||
```toml
|
```toml
|
||||||
# Cargo.toml
|
# Cargo.toml
|
||||||
[dependencies]
|
[dependencies]
|
||||||
toml = "0.2"
|
toml = "0.3"
|
||||||
```
|
```
|
||||||
|
|
||||||
By default this crate supports [`rustc-serialize`] style serialization. This can
|
This crate also supports serialization/deserialization through the
|
||||||
be disabled though by disabling the default feature set:
|
[serde](serde.rs) crate on crates.io. Currently the older `rustc-serialize`
|
||||||
|
crate is not supported in the 0.3+ series of the `toml` crate, but 0.2 can be
|
||||||
[`rustc-serialize`]: http://github.com/rust-lang/rustc-serialize
|
used for that support.
|
||||||
|
|
||||||
```toml
|
|
||||||
# Cargo.toml
|
|
||||||
[dependencies]
|
|
||||||
toml = { version = "0.2", default-features = false }
|
|
||||||
```
|
|
||||||
|
|
||||||
If you'd like to enable support for [serde] you can enable the `serde` feature:
|
|
||||||
|
|
||||||
[serde]: https://github.com/serde-rs/serde
|
|
||||||
|
|
||||||
```toml
|
|
||||||
# Cargo.toml
|
|
||||||
[dependencies]
|
|
||||||
toml = { version = "0.2", features = ["serde"] }
|
|
||||||
```
|
|
||||||
|
|
||||||
If you'd like to *only* support serde, you can also write:
|
|
||||||
|
|
||||||
[serde]: https://github.com/serde-rs/serde
|
|
||||||
|
|
||||||
```toml
|
|
||||||
# Cargo.toml
|
|
||||||
[dependencies]
|
|
||||||
toml = { version = "0.2", features = ["serde"], default-features = false }
|
|
||||||
```
|
|
||||||
|
|
||||||
# License
|
# License
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue