Skip to content

Commit 4089034

Browse files
authored
Merge pull request #399 from torkleyy/cleanup
2 parents 053bdf8 + 7a59210 commit 4089034

File tree

4 files changed

+10
-64
lines changed

4 files changed

+10
-64
lines changed

CHANGELOG.md

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,8 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
77
## Unreleased
88

99
## [0.8.0] - 2022-08-17
10+
11+
- Bump dependencies: `bitflags` to 1.3, `indexmap` to 1.9 ([#399](https://github.com/ron-rs/ron/pull/399))
1012
- 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))
1113
- 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))
1214
- Fix issue [#301](https://github.com/ron-rs/ron/issues/301) with better error messages ([#354](https://github.com/ron-rs/ron/pull/354))

Cargo.toml

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -2,12 +2,13 @@
22
name = "ron"
33
# Memo: update version in src/lib.rs too (doc link)
44
version = "0.8.0"
5-
license = "MIT/Apache-2.0"
5+
license = "MIT OR Apache-2.0"
66
keywords = ["parser", "serde", "serialization"]
77
authors = [
88
"Christopher Durham <cad97@cad97.com>",
99
"Dzmitry Malyshau <kvarkus@gmail.com>",
1010
"Thomas Schaller <torkleyy@gmail.com>",
11+
"Juniper Langenstein <juniper.langenstein@helsinki.fi>",
1112
]
1213
edition = "2021"
1314
description = "Rusty Object Notation"
@@ -16,15 +17,16 @@ readme = "README.md"
1617
homepage = "https://github.com/ron-rs/ron"
1718
repository = "https://github.com/ron-rs/ron"
1819
documentation = "https://docs.rs/ron/"
20+
rust-version = "1.56.0"
1921

2022
[features]
2123
default = []
2224
integer128 = []
2325

2426
[dependencies]
2527
base64 = "0.13"
26-
bitflags = "1.0.4"
27-
indexmap = { version = "1.0.2", features = ["serde-1"], optional = true }
28+
bitflags = "1.3.2"
29+
indexmap = { version = "1.9.1", features = ["serde-1"], optional = true }
2830
serde = { version = "1.0.60", features = ["serde_derive"] }
2931

3032
[dev-dependencies]

README.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@ structs, enums, tuples, arrays, generic maps, and primitive values.
1313

1414
## Example
1515

16-
```rust
16+
```rust,ignore
1717
GameConfig( // optional struct name
1818
window_size: (800, 600),
1919
window_title: "PAC-MAN",
@@ -71,7 +71,7 @@ GameConfig( // optional struct name
7171

7272
### Same example in RON
7373

74-
```rust
74+
```rust,ignore
7575
Scene( // class name is optional
7676
materials: { // this is a map
7777
"metal": (

src/lib.rs

Lines changed: 1 addition & 59 deletions
Original file line numberDiff line numberDiff line change
@@ -1,62 +1,4 @@
1-
/*!
2-
RON is a simple config format which looks similar to Rust syntax.
3-
4-
## Features
5-
6-
* Data types
7-
* Structs, typename optional
8-
* Tuples
9-
* Enums
10-
* Lists
11-
* Maps
12-
* Units (`()`)
13-
* Optionals
14-
* Primitives: booleans, numbers, string, char
15-
* Allows nested layout (similar to JSON)
16-
* Supports comments
17-
* Trailing commas
18-
* Pretty serialization
19-
20-
## Syntax example
21-
22-
```rust,ignore
23-
Game(
24-
title: "Hello, RON!",
25-
level: Level( // We could just leave the `Level` out
26-
buildings: [
27-
(
28-
size: (10, 20),
29-
color: Yellow, // This as an enum variant
30-
owner: None,
31-
),
32-
(
33-
size: (20, 25),
34-
color: Custom(0.1, 0.8, 1.0),
35-
owner: Some("guy"),
36-
),
37-
],
38-
characters: {
39-
"guy": (
40-
friendly: true,
41-
),
42-
},
43-
),
44-
)
45-
```
46-
47-
## Usage
48-
49-
Just add it to your `Cargo.toml`:
50-
51-
```toml
52-
[dependencies]
53-
ron = "*"
54-
```
55-
56-
Serializing / Deserializing is as simple as calling `to_string` / `from_str`.
57-
58-
!*/
59-
1+
#![doc = include_str!("../README.md")]
602
#![doc(html_root_url = "https://docs.rs/ron/0.8.0")]
613

624
pub mod de;

0 commit comments

Comments
 (0)