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
3 changes: 3 additions & 0 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -138,6 +138,9 @@ jobs:
- uses: rustsec/audit-check@v2
with:
token: ${{ secrets.GITHUB_TOKEN }}
# RUSTSEC-2026-0387: crypto-bigint 0.5 comes through p256 and p384 in jsonwebtoken,
# whose latest release still requires them. Tokens are HS256 only, so that code never runs.
ignore: RUSTSEC-2026-0387

compose:
name: Quick start
Expand Down
77 changes: 39 additions & 38 deletions Cargo.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

6 changes: 3 additions & 3 deletions Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ exclude = ["crates/web"]
[workspace.package]
version = "0.3.0"
edition = "2024"
rust-version = "1.85"
rust-version = "1.88"
license = "MIT"
repository = "https://github.com/Ssebv/flagforge"
authors = ["FlagForge contributors"]
Expand Down Expand Up @@ -70,8 +70,8 @@ base64 = "0.23"
rand = "0.10"

# Docs
utoipa = { version = "5.5", features = ["axum_extras", "uuid", "chrono"] }
utoipa-swagger-ui = { version = "9.0", features = ["axum"] }
utoipa = { version = "6.0", features = ["axum_extras", "uuid", "chrono"] }
utoipa-swagger-ui = { version = "10.0", features = ["axum"] }

# Misc
rust-embed = "8.12"
Expand Down
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ from the same codebase.

[![CI](https://github.com/Ssebv/flagforge/actions/workflows/ci.yml/badge.svg)](https://github.com/Ssebv/flagforge/actions/workflows/ci.yml)
[![License: MIT](https://img.shields.io/badge/license-MIT-blue.svg)](LICENSE)
![Rust 1.85+](https://img.shields.io/badge/rust-1.85%2B-orange.svg)
![Rust 1.88+](https://img.shields.io/badge/rust-1.88%2B-orange.svg)
![No JavaScript build](https://img.shields.io/badge/frontend-Leptos%20%2F%20WASM-orange.svg)

**Run it in two commands** — `docker compose up --build`, then
Expand Down
4 changes: 2 additions & 2 deletions crates/sdk/tests/agreement.rs
Original file line number Diff line number Diff line change
Expand Up @@ -197,7 +197,7 @@ impl Fixture {

fn context(index: u32) -> EvaluationContext {
EvaluationContext::new(format!("user-{index}"))
.with("plan", if index % 10 == 0 { "enterprise" } else { "free" })
.with("plan", if index.is_multiple_of(10) { "enterprise" } else { "free" })
}

#[sqlx::test(migrations = "../../migrations")]
Expand Down Expand Up @@ -357,7 +357,7 @@ async fn recorded_counters_agree_with_local_assignment(pool: PgPool) {
*exposures.entry(variant.clone()).or_default() += 1;

// Every third user converts.
if i % 3 == 0 {
if i.is_multiple_of(3) {
assert_eq!(client.track("order.completed", &context), 1);
*conversions.entry(variant).or_default() += 1;
}
Expand Down
Loading