From b1249caf6e1d1c7fc77cf52ea395bd92774f114d Mon Sep 17 00:00:00 2001 From: Tpt Date: Sun, 25 Aug 2024 17:49:25 +0200 Subject: [PATCH] Releases v0.8.5 --- .github/workflows/build.yml | 6 ++---- CHANGELOG.md | 8 ++++++++ README.md | 2 ++ api/Cargo.toml | 4 ++-- deny.toml | 11 ++++------- testsuite/Cargo.toml | 8 ++++---- turtle/Cargo.toml | 6 +++--- turtle/src/lib.rs | 6 ++++++ typos.toml | 5 +++++ xml/Cargo.toml | 6 +++--- xml/src/lib.rs | 6 ++++++ 11 files changed, 45 insertions(+), 23 deletions(-) create mode 100644 typos.toml diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml index a7a68c1..33bc0c6 100644 --- a/.github/workflows/build.yml +++ b/.github/workflows/build.yml @@ -7,8 +7,6 @@ on: pull_request: branches: - main - schedule: - - cron: "0 0 * * 0" jobs: fmt: @@ -32,7 +30,7 @@ jobs: runs-on: ubuntu-latest steps: - uses: actions/checkout@v3 - - run: rustup update && rustup override set 1.67.1 && rustup component add clippy + - run: rustup update && rustup override set 1.75 && rustup component add clippy - uses: Swatinem/rust-cache@v2 - run: cargo clippy --all-targets -- -D warnings -D clippy::all - run: cargo clippy --all-targets --all-features -- -D warnings -D clippy::all @@ -61,7 +59,7 @@ jobs: runs-on: ubuntu-latest steps: - uses: actions/checkout@v3 - - run: rustup update && rustup override set 1.61.0 + - run: rustup update && rustup override set 1.75 - uses: Swatinem/rust-cache@v2 - run: cargo doc --all-features --no-deps env: diff --git a/CHANGELOG.md b/CHANGELOG.md index c434c99..886059a 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,5 +1,13 @@ # Changelog +## [0.8.5] - 2024-08-28 + +### Changed +- Turtle: makes sure that prefixes and keywords are properly disambiguated. For example, `base:` is a prefix and not a keyword. +- Bump MSRV to 1.75 +- Bump quick-xml to 0.36 + + ## [0.8.4] - 2022-04-19 ### Changed diff --git a/README.md b/README.md index d128e06..fbef923 100644 --- a/README.md +++ b/README.md @@ -5,6 +5,8 @@ Rio Rio is a low level library which provides conformant and fast parsers and formatters for RDF related file formats. +These libraries are going to be replaced by the [oxttl](https://crates.io/crates/oxttl) and [oxrdfxml](https://crates.io/crates/oxrdfxml) libraries. + It currently provides [N-Triples](https://docs.rs/rio_turtle/latest/rio_turtle/struct.NTriplesParser.html), [N-Quads](https://docs.rs/rio_turtle/latest/rio_turtle/struct.NQuadsParser.html), [Turtle](https://docs.rs/rio_turtle/latest/rio_turtle/struct.TurtleParser.html), [TriG](https://docs.rs/rio_turtle/latest/rio_turtle/struct.TrigParser.html) and [RDF/XML](https://docs.rs/rio_xml/latest/rio_xml/struct.RdfXmlParser.html) parsers and formatters. It is split into multiple crates: diff --git a/api/Cargo.toml b/api/Cargo.toml index 82a57a4..f140f30 100644 --- a/api/Cargo.toml +++ b/api/Cargo.toml @@ -1,6 +1,6 @@ [package] name = "rio_api" -version = "0.8.4" +version = "0.8.5" authors = ["Tpt ", "Pierre-Antoine Champin "] license = "Apache-2.0" readme = "../README.md" @@ -10,7 +10,7 @@ description = """ Common data structures for RDF formats parsers and serializers """ edition = "2021" -rust-version = "1.60" +rust-version = "1.75" [package.metadata.docs.rs] all-features = true diff --git a/deny.toml b/deny.toml index 859108e..4b2b1c8 100644 --- a/deny.toml +++ b/deny.toml @@ -1,12 +1,9 @@ [licenses] -unlicensed = "deny" allow = [ - "MIT", "Apache-2.0", - "Unicode-DFS-2016" + "MIT", ] -default = "deny" -[bans] -multiple-versions = "warn" -wildcards = "deny" +[sources] +unknown-registry = "deny" + diff --git a/testsuite/Cargo.toml b/testsuite/Cargo.toml index c22ab0f..7f7e25a 100644 --- a/testsuite/Cargo.toml +++ b/testsuite/Cargo.toml @@ -1,6 +1,6 @@ [package] name = "rio_testsuite" -version = "0.8.4" +version = "0.8.5" authors = ["Tpt "] license = "Apache-2.0" readme = "../README.md" @@ -12,9 +12,9 @@ edition = "2021" publish = false [dependencies] -rio_api = { version = "0.8", path="../api" } -rio_turtle = { version = "0.8", path="../turtle" } -rio_xml = { version = "0.8", path="../xml" } +rio_api = { version = "0.8", path = "../api" } +rio_turtle = { version = "0.8", path = "../turtle" } +rio_xml = { version = "0.8", path = "../xml" } oxiri = "0.2" permutohedron = "0.2" diff --git a/turtle/Cargo.toml b/turtle/Cargo.toml index 0286428..bd6560e 100644 --- a/turtle/Cargo.toml +++ b/turtle/Cargo.toml @@ -1,6 +1,6 @@ [package] name = "rio_turtle" -version = "0.8.4" +version = "0.8.5" authors = ["Tpt ", "Pierre-Antoine Champin "] license = "Apache-2.0" readme = "../README.md" @@ -10,7 +10,7 @@ description = """ RDF Turtle, Trig, N-Triples and N-Quads parsers and serializers """ edition = "2021" -rust-version = "1.60" +rust-version = "1.75" [package.metadata.docs.rs] all-features = true @@ -22,4 +22,4 @@ generalized = ["rio_api/generalized"] [dependencies] oxilangtag = "0.1" oxiri = "0.2" -rio_api = { version = "0.8", path="../api" } +rio_api = { version = "0.8", path = "../api" } diff --git a/turtle/src/lib.rs b/turtle/src/lib.rs index 25c7df6..0a6ac33 100644 --- a/turtle/src/lib.rs +++ b/turtle/src/lib.rs @@ -1,5 +1,11 @@ //! Implementation of [N-Triples](https://www.w3.org/TR/n-triples/), [N-Quads](https://www.w3.org/TR/n-quads/), [Turtle](https://www.w3.org/TR/turtle/) and [TriG](https://www.w3.org/TR/trig/) parsers. //! +//! +//! +//! This library is going to be deprecated. +//! [oxttl](https://crates.io/crates/oxttl) is currently in development to replace it. +//! +//! //! [RDF-star](https://w3c.github.io/rdf-star/cg-spec/) syntaxes are also supported, i.e. [Turtle-star](https://w3c.github.io/rdf-star/cg-spec/#turtle-star), [TriG-star](https://w3c.github.io/rdf-star/cg-spec/#trig-star), [N-Triples-star](https://w3c.github.io/rdf-star/cg-spec/#n-triples-star) and [N-Quads-star](https://w3c.github.io/rdf-star/cg-spec/#n-quads-star). //! //! All the provided parsers work in streaming from a `BufRead` implementation. diff --git a/typos.toml b/typos.toml new file mode 100644 index 0000000..cff6f63 --- /dev/null +++ b/typos.toml @@ -0,0 +1,5 @@ +[files] +extend-exclude = ["**/*.svg"] + +[default.extend-words] +pn = "pn" # Common abbreviation in Turtle grammar diff --git a/xml/Cargo.toml b/xml/Cargo.toml index 6982ec2..cabc4d7 100644 --- a/xml/Cargo.toml +++ b/xml/Cargo.toml @@ -1,6 +1,6 @@ [package] name = "rio_xml" -version = "0.8.4" +version = "0.8.5" authors = ["Tpt "] license = "Apache-2.0" readme = "../README.md" @@ -10,7 +10,7 @@ description = """ RDF/XML parser and serializer """ edition = "2021" -rust-version = "1.61" +rust-version = "1.75" [package.metadata.docs.rs] all-features = true @@ -21,5 +21,5 @@ default = [] [dependencies] oxilangtag = "0.1" oxiri = "0.2" -rio_api = { version = "0.8", path="../api" } +rio_api = { version = "0.8", path = "../api" } quick-xml = "0.36" diff --git a/xml/src/lib.rs b/xml/src/lib.rs index e78ce27..51d02f0 100644 --- a/xml/src/lib.rs +++ b/xml/src/lib.rs @@ -1,5 +1,11 @@ //! Implementation of an [RDF/XML](https://www.w3.org/TR/rdf-syntax-grammar/) streaming parser. //! +//! +//! +//! This library is going to be deprecated. +//! [oxrdfxml](https://crates.io/crates/oxrdfxml) is currently in development to replace it. +//! +//! //! How to read a file `foo.rdf` and count the number of `rdf:type` triples: //! ```no_run //! use rio_xml::{RdfXmlParser, RdfXmlError};