chore!: Rename simple_generator feature to simple-generator

Signed-off-by: Awiteb <a@4rs.nl>
This commit is contained in:
Awiteb 2024-08-12 21:06:32 +00:00
parent ebed69cce9
commit 4767916166
Signed by: awiteb
GPG key ID: 3F6B55640AA6682F
4 changed files with 6 additions and 6 deletions

View file

@ -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

View file

@ -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"]
[dev-dependencies]
tempfile = "3.9"
@ -35,4 +35,4 @@ rstest = "0.22.0"
[[example]]
name = "simple_login"
required-features = ["simple_generator"]
required-features = ["simple-generator"]

View file

@ -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

View file

@ -9,10 +9,10 @@
// 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(feature = "simple_generator")]
#[cfg(feature = "simple-generator")]
pub use simple_generator::*;
/// Captcha generator, used to generate a new captcha image and answer.