Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Length modes #88

Merged
merged 22 commits into from
Jan 27, 2024
Merged
Show file tree
Hide file tree
Changes from 21 commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 3 additions & 2 deletions .cargo/config.toml
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
[alias]
xtask = "run --quiet --manifest-path ./xtask/Cargo.toml --"
x = "run --quiet --manifest-path ./xtask/Cargo.toml --"
build-xtask = "build --locked --manifest-path ./xtask/Cargo.toml"
xtask = "run --locked --quiet --manifest-path ./xtask/Cargo.toml --"
x = "run --locked --quiet --manifest-path ./xtask/Cargo.toml --"

[target.wasm32-unknown-unknown]
runner = 'wasm-bindgen-test-runner'
6 changes: 3 additions & 3 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -88,10 +88,10 @@ jobs:
shared-key: "rust-${{ matrix.build }}-test"

- name: Build xtask
run: cargo build --manifest-path ./xtask/Cargo.toml
run: cargo build-xtask

- name: Build docs
run: cargo doc --all-features
run: cargo doc --locked --all-features

- name: Run tests
run: cargo x test
Expand Down Expand Up @@ -124,7 +124,7 @@ jobs:
shared-key: "rust-checks"

- name: Build xtask
run: cargo build --manifest-path ./xtask/Cargo.toml
run: cargo build-xtask

- name: Run checks
run: cargo x check
Expand Down
130 changes: 90 additions & 40 deletions README.md

Large diffs are not rendered by default.

14 changes: 3 additions & 11 deletions garde/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -20,10 +20,12 @@ default = [
"email",
"email-idna",
"regex",
"unicode",
]
serde = ["dep:serde", "compact_str/serde"]
derive = ["dep:garde_derive"]
url = ["dep:url"]
unicode = ["dep:unicode-segmentation"]
credit-card = ["dep:card-validate"]
phone-number = ["dep:phonenumber"]
email = ["regex"]
Expand All @@ -40,6 +42,7 @@ compact_str = { version = "0.7.1", default-features = false }

serde = { version = "1", features = ["derive"], optional = true }
url = { version = "2", optional = true }
unicode-segmentation = { version = "1.10.1", optional = true }
card-validate = { version = "2.3", optional = true }
phonenumber = { version = "0.3.2+8.13.9", optional = true }
regex = { version = "1", default-features = false, features = [
Expand All @@ -59,14 +62,3 @@ glob = "0.3.1"

[target.'cfg(all(target_arch = "wasm32", target_os = "unknown"))'.dev-dependencies]
wasm-bindgen-test = "0.3.38"

[target.'cfg(not(all(target_arch = "wasm32", target_os = "unknown")))'.dev-dependencies]
criterion = "0.4"

[[bench]]
name = "validation"
harness = false

[profile.profiling]
inherits = "release"
debug = true
Loading
Loading