Skip to content

Commit 4aa0ab2

Browse files
committed
Bump canonical_json version to 0.2.0
1 parent 726c4d0 commit 4aa0ab2

File tree

4 files changed

+66
-21
lines changed

4 files changed

+66
-21
lines changed

Cargo.lock

Lines changed: 50 additions & 9 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

Cargo.toml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
[package]
22
name = "canonicaljson-rs"
3-
version = "0.1.0"
3+
version = "0.2.0"
44
authors = ["Mathieu Leplatre <[email protected]>"]
55
edition = "2018"
66
description = "Python bindings for canonical_json"
@@ -14,7 +14,7 @@ crate-type = ["cdylib"]
1414
[dependencies]
1515
serde = "1.0"
1616
serde_json = "1.0"
17-
canonical_json = { version = "0.1.0", path = "../canonicaljson-rs/" }
17+
canonical_json = "0.2.0"
1818

1919
[dependencies.pyo3]
2020
version = "0.11"

README.rst

Lines changed: 12 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -25,14 +25,6 @@ Usage
2525
* ``canonicaljson.dump(obj: Any, stream: IO) -> str``
2626

2727

28-
See Also
29-
========
30-
31-
* https://github.com/Kinto/kinto-signer/blob/6.1.0/kinto_signer/canonicaljson.py
32-
* https://searchfox.org/mozilla-central/rev/b2395478c/toolkit/modules/CanonicalJSON.jsm
33-
* https://github.com/matrix-org/python-canonicaljson
34-
* The code to build a ``serde_json::Value`` from a ``pyo3::PyObject`` was greatly inspired by Matthias Endler's `hyperjson <https://github.com/mre/hyperjson/>`_
35-
3628
Development
3729
===========
3830

@@ -63,6 +55,18 @@ Update version in ``Cargo.toml`` and:
6355
maturin build
6456
maturin publish
6557
58+
See Also
59+
========
60+
61+
* https://github.com/gibson042/canonicaljson-spec
62+
* The code to build a ``serde_json::Value`` from a ``pyo3::PyObject`` was greatly inspired by Matthias Endler's `hyperjson <https://github.com/mre/hyperjson/>`_
63+
64+
Other specs:
65+
66+
* https://github.com/Kinto/kinto-signer/blob/6.1.0/kinto_signer/canonicaljson.py
67+
* https://searchfox.org/mozilla-central/rev/b2395478c/toolkit/modules/CanonicalJSON.jsm
68+
* https://github.com/matrix-org/python-canonicaljson
69+
6670
License
6771
=======
6872

tests/test_dumps.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -12,12 +12,12 @@
1212
(["b", 2, 1], '["b",2,1]'),
1313
(("on", "off"), '["on","off"]'),
1414
(1, "1"),
15-
(3.14, "3.14"),
15+
(3.14, "3.14E0"),
1616
(False, "false"),
1717
(True, "true"),
1818
("s", '"s"'),
1919
("é", '"\\u00e9"'),
20-
(10.0**21, '1e+21'),
20+
(10.0**21, '1E21'),
2121
("1\n 2 \t \b\f", '"1\\n 2 \\t \\b\\f"'),
2222
("\xff I ❤ testing", r'"\u00ff I \u2764 testing"'),
2323
(r" \" ", r'" \\\" "'),

0 commit comments

Comments
 (0)