Skip to content
Merged
Show file tree
Hide file tree
Changes from all 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
1 change: 1 addition & 0 deletions .cargo/config.toml
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
[alias]
build-xtask = "build --manifest-path ./xtask/Cargo.toml"
xtask = "run --quiet --manifest-path ./xtask/Cargo.toml --"
x = "run --quiet --manifest-path ./xtask/Cargo.toml --"

Expand Down
6 changes: 3 additions & 3 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,7 @@ jobs:
shared-key: "rust-stable-test"

- name: Install wasm-bindgen-cli
run: cargo install --locked wasm-bindgen-cli
run: cargo install wasm-bindgen-cli

- name: Build xtask
run: cargo build --manifest-path ./xtask/Cargo.toml
Expand Down Expand Up @@ -88,7 +88,7 @@ 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
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