From e5defe0f6105f263dd9fb09b1615e1d4d3117fc4 Mon Sep 17 00:00:00 2001
From: Awiteb
Date: Mon, 12 Aug 2024 20:44:21 +0000
Subject: [PATCH] chore: Bump the version to `0.2.0`
Signed-off-by: Awiteb
---
.forgejo/workflows/ci.yml | 2 +-
Cargo.toml | 6 +++---
Justfile | 2 +-
src/captcha_gen/mod.rs | 2 +-
4 files changed, 6 insertions(+), 6 deletions(-)
diff --git a/.forgejo/workflows/ci.yml b/.forgejo/workflows/ci.yml
index 31ab8c4..b8e2e83 100644
--- a/.forgejo/workflows/ci.yml
+++ b/.forgejo/workflows/ci.yml
@@ -18,7 +18,7 @@ jobs:
- name: Build the source code
run: cargo build
- name: Build examples
- run: cargo build -F 'cacache-storage' --example simple_login
+ run: cargo build -F 'simple-generator' --example simple_login
- name: Run tests
run: cargo test --tests --all-features
- name: Check the code format
diff --git a/Cargo.toml b/Cargo.toml
index 84fbb39..5dff23e 100644
--- a/Cargo.toml
+++ b/Cargo.toml
@@ -1,6 +1,6 @@
[package]
name = "salvo-captcha"
-version = "0.1.0"
+version = "0.2.0"
rust-version = "1.75.0"
edition = "2021"
authors = ["Awiteb "]
@@ -24,7 +24,7 @@ either = { version = "1.13.0", default-features = false }
[features]
cacache-storage = ["dep:cacache"]
-simple_generator = ["dep:captcha"]
+simple-generator = ["dep:captcha"]
[package.metadata.docs.rs]
all-features = true
@@ -39,4 +39,4 @@ rstest = "0.22.0"
[[example]]
name = "simple_login"
-required-features = ["simple_generator"]
+required-features = ["simple-generator"]
diff --git a/Justfile b/Justfile
index 23a0727..8a6ecbc 100644
--- a/Justfile
+++ b/Justfile
@@ -19,7 +19,7 @@ _default:
# Run the CI (Local use only)
@ci:
cargo fmt --all --check
- cargo build -F 'simple_generator' --example simple_login
+ cargo build -F 'simple-generator' --example simple_login
cargo clippy --workspace --all-targets --examples --tests --all-features -- -D warnings
cargo nextest run --workspace --all-targets --all-features
@{{JUST_EXECUTABLE}} msrv
diff --git a/src/captcha_gen/mod.rs b/src/captcha_gen/mod.rs
index dc9c6e7..f5a9534 100644
--- a/src/captcha_gen/mod.rs
+++ b/src/captcha_gen/mod.rs
@@ -9,7 +9,7 @@
// OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
// THE SOFTWARE.
-#[cfg(feature = "simple_generator")]
+#[cfg(feature = "simple-generator")]
mod simple_generator;
#[cfg_attr(docsrs, doc(cfg(feature = "simple-generator")))]