Skip to content

Commit

Permalink
Merge pull request #399 from torkleyy/cleanup
Browse files Browse the repository at this point in the history
  • Loading branch information
torkleyy committed Aug 16, 2022
2 parents 053bdf8 + 7a59210 commit 4089034
Show file tree
Hide file tree
Showing 4 changed files with 10 additions and 64 deletions.
2 changes: 2 additions & 0 deletions CHANGELOG.md
Expand Up @@ -7,6 +7,8 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
## Unreleased

## [0.8.0] - 2022-08-17

- Bump dependencies: `bitflags` to 1.3, `indexmap` to 1.9 ([#399](https://github.com/ron-rs/ron/pull/399))
- Add `integer128` feature that guards `i128` and `u128` ([#304](https://github.com/ron-rs/ron/pull/304), [#351](https://github.com/ron-rs/ron/pull/351))
- Fix issue [#265](https://github.com/ron-rs/ron/issues/265) with better missing comma error ([#353](https://github.com/ron-rs/ron/pull/353))
- Fix issue [#301](https://github.com/ron-rs/ron/issues/301) with better error messages ([#354](https://github.com/ron-rs/ron/pull/354))
Expand Down
8 changes: 5 additions & 3 deletions Cargo.toml
Expand Up @@ -2,12 +2,13 @@
name = "ron"
# Memo: update version in src/lib.rs too (doc link)
version = "0.8.0"
license = "MIT/Apache-2.0"
license = "MIT OR Apache-2.0"
keywords = ["parser", "serde", "serialization"]
authors = [
"Christopher Durham <cad97@cad97.com>",
"Dzmitry Malyshau <kvarkus@gmail.com>",
"Thomas Schaller <torkleyy@gmail.com>",
"Juniper Langenstein <juniper.langenstein@helsinki.fi>",
]
edition = "2021"
description = "Rusty Object Notation"
Expand All @@ -16,15 +17,16 @@ readme = "README.md"
homepage = "https://github.com/ron-rs/ron"
repository = "https://github.com/ron-rs/ron"
documentation = "https://docs.rs/ron/"
rust-version = "1.56.0"

[features]
default = []
integer128 = []

[dependencies]
base64 = "0.13"
bitflags = "1.0.4"
indexmap = { version = "1.0.2", features = ["serde-1"], optional = true }
bitflags = "1.3.2"
indexmap = { version = "1.9.1", features = ["serde-1"], optional = true }
serde = { version = "1.0.60", features = ["serde_derive"] }

[dev-dependencies]
Expand Down
4 changes: 2 additions & 2 deletions README.md
Expand Up @@ -13,7 +13,7 @@ structs, enums, tuples, arrays, generic maps, and primitive values.

## Example

```rust
```rust,ignore
GameConfig( // optional struct name
window_size: (800, 600),
window_title: "PAC-MAN",
Expand Down Expand Up @@ -71,7 +71,7 @@ GameConfig( // optional struct name

### Same example in RON

```rust
```rust,ignore
Scene( // class name is optional
materials: { // this is a map
"metal": (
Expand Down
60 changes: 1 addition & 59 deletions src/lib.rs
@@ -1,62 +1,4 @@
/*!
RON is a simple config format which looks similar to Rust syntax.
## Features
* Data types
* Structs, typename optional
* Tuples
* Enums
* Lists
* Maps
* Units (`()`)
* Optionals
* Primitives: booleans, numbers, string, char
* Allows nested layout (similar to JSON)
* Supports comments
* Trailing commas
* Pretty serialization
## Syntax example
```rust,ignore
Game(
title: "Hello, RON!",
level: Level( // We could just leave the `Level` out
buildings: [
(
size: (10, 20),
color: Yellow, // This as an enum variant
owner: None,
),
(
size: (20, 25),
color: Custom(0.1, 0.8, 1.0),
owner: Some("guy"),
),
],
characters: {
"guy": (
friendly: true,
),
},
),
)
```
## Usage
Just add it to your `Cargo.toml`:
```toml
[dependencies]
ron = "*"
```
Serializing / Deserializing is as simple as calling `to_string` / `from_str`.
!*/

#![doc = include_str!("../README.md")]
#![doc(html_root_url = "https://docs.rs/ron/0.8.0")]

pub mod de;
Expand Down

0 comments on commit 4089034

Please sign in to comment.