Fintan Halpenny 5ea8505000 radicle: custom CanonicalFormatter
The olpc-json crate's CanonicalFormatter does not escape certain
control characters, including new lines. This means that when a COB
gets serialized that includes new lines, those new lines are
serialized verbatim. Upon deserialization `serde_json` -- and any
other JSON deserializer -- will fail due to the encounter of these
control characters.

This behaviour was prevented in radicle-link with the definition of
its own CanoncialFormatter that encodes the control characters
correctly.

Inline this definition of the formatter, under MIT license, to ensure
the correct and remove oplc-cjson.

The behaviour is checked using a multiline test in the issue COB.

Signed-off-by: Fintan Halpenny <fintan.halpenny@gmail.com>
X-Clacks-Overhead: GNU Terry Pratchett
2023-02-24 11:59:36 +01:00
2023-02-04 19:30:29 +01:00
2023-02-04 12:29:50 +01:00
2023-02-04 19:30:29 +01:00
2023-02-23 06:16:37 +00:00
2022-11-05 12:47:26 +01:00
2022-12-14 17:15:40 +01:00
2023-02-14 20:34:55 +01:00
2022-09-13 10:13:13 +02:00
2023-02-04 19:30:29 +01:00
2023-02-24 11:59:36 +01:00
2022-11-16 12:26:12 +01:00
2023-01-12 13:15:37 +01:00
2023-02-04 19:30:29 +01:00

❤️🪵

Radicle Heartwood Protocol & Stack

Heartwood is in the early development phase and is not yet ready for use.

Installation

# Command line tools
$ cargo install --locked --path ./radicle-cli

# The radicle node
$ cargo install --locked --path ./radicle-node

# Git tool to support the 'rad://' remote scheme
$ cargo install --locked --path ./radicle-remote-helper
S
Description
Radicle Heartwood Protocol & Stack
Readme
40 MiB
Languages
Rust 97.8%
Shell 0.5%
CUE 0.4%
Nix 0.3%
Just 0.3%
Other 0.6%