From c40b2e08ce036cbd7a1c0ae988984cd657f5a0fd Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?R=C3=A9mi=20Dupr=C3=A9?= Date: Sun, 23 Feb 2025 17:14:29 +0100 Subject: [PATCH] attempt to revert to edition 2021 to fix CI But the code remains 2024-ready --- .github/workflows/checks.yml | 3 +-- Cargo.toml | 2 +- compact-calendar/Cargo.toml | 2 +- fuzz/Cargo.toml | 2 +- opening-hours-py/Cargo.toml | 2 +- opening-hours-syntax/Cargo.toml | 2 +- 6 files changed, 6 insertions(+), 7 deletions(-) diff --git a/.github/workflows/checks.yml b/.github/workflows/checks.yml index b1508369..30535755 100644 --- a/.github/workflows/checks.yml +++ b/.github/workflows/checks.yml @@ -122,8 +122,7 @@ jobs: --workspace --all-features --run-types Tests - # Doctests are disabled because edition 2024 seems to have broken this - # --run-types Doctests + --run-types Doctests - name: Upload to codecov.io uses: codecov/codecov-action@v2 with: diff --git a/Cargo.toml b/Cargo.toml index f912883f..98296e10 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -8,7 +8,7 @@ repository = "https://github.com/remi-dupre/opening-hours-rs" documentation = "https://docs.rs/opening-hours" homepage = "https://github.com/remi-dupre/opening-hours-rs" description = "A parser and evaluation tool for the opening_hours fields in OpenStreetMap." -edition = "2024" +edition = "2021" exclude = ["dist/"] # generated by maturin build = "opening-hours/build.rs" diff --git a/compact-calendar/Cargo.toml b/compact-calendar/Cargo.toml index 0ba5ada1..d6f93d97 100644 --- a/compact-calendar/Cargo.toml +++ b/compact-calendar/Cargo.toml @@ -8,7 +8,7 @@ repository = "https://github.com/remi-dupre/opening-hours-rs" documentation = "https://docs.rs/compact-calendar" homepage = "https://github.com/remi-dupre/opening-hours-rs/tree/master/compact-calendar" description = "Compact representation of a set of days based on a bit-maps" -edition = "2024" +edition = "2021" [dependencies] chrono = { version = "0.4", default-features = false } diff --git a/fuzz/Cargo.toml b/fuzz/Cargo.toml index dbab4ad5..83f06f01 100644 --- a/fuzz/Cargo.toml +++ b/fuzz/Cargo.toml @@ -2,7 +2,7 @@ name = "fuzz" version = "0.1.0" authors = ["Rémi Dupré "] -edition = "2024" +edition = "2021" [features] default = [] diff --git a/opening-hours-py/Cargo.toml b/opening-hours-py/Cargo.toml index daeaf0b7..735b806d 100644 --- a/opening-hours-py/Cargo.toml +++ b/opening-hours-py/Cargo.toml @@ -8,7 +8,7 @@ repository = "https://github.com/remi-dupre/opening-hours-rs" documentation = "https://remi-dupre.github.io/opening-hours-rs/opening_hours.html" homepage = "https://github.com/remi-dupre/opening-hours-rs/tree/master/opening-hours-py" description = "A parser and toolkit for the opening_hours in OpenStreetMap written in Rust." -edition = "2024" +edition = "2021" [lib] name = "opening_hours" diff --git a/opening-hours-syntax/Cargo.toml b/opening-hours-syntax/Cargo.toml index 6785e56e..4d3d06c4 100644 --- a/opening-hours-syntax/Cargo.toml +++ b/opening-hours-syntax/Cargo.toml @@ -8,7 +8,7 @@ repository = "https://github.com/remi-dupre/opening-hours-rs" documentation = "https://docs.rs/opening-hours-syntax" homepage = "https://github.com/remi-dupre/opening-hours-rs/tree/master/opening-hours-syntax" description = "A parser for opening_hours fields in OpenStreetMap." -edition = "2024" +edition = "2021" [dependencies] chrono = { version = "0.4", default-features = false }