Skip to content

Commit

Permalink
Merge pull request #122 from jplock/jp-axum-update
Browse files Browse the repository at this point in the history
Update dependencies
  • Loading branch information
jplock authored Jan 1, 2025
2 parents 415d459 + 8831980 commit bcde4d2
Show file tree
Hide file tree
Showing 8 changed files with 63 additions and 77 deletions.
4 changes: 2 additions & 2 deletions .github/workflows/deploy-docs.yml
Original file line number Diff line number Diff line change
Expand Up @@ -28,8 +28,8 @@ jobs:
if: github.repository_owner == 'aws-samples'
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4
- uses: actions/setup-python@0b93645e9fea7318ecaed2b359559ac225c90a2b # v5
- uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4.2.2
- uses: actions/setup-python@0b93645e9fea7318ecaed2b359559ac225c90a2b # v5.3.0
with:
python-version: 3.x
cache: pip
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/rust.yml
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@ jobs:
- name: Checkout
uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4.2.2
- name: Cache
uses: Swatinem/rust-cache@82a92a6e8fbeee089604da2575dc567ae9ddeaab # v2.7.5
uses: Swatinem/rust-cache@f0deed1e0edfc6a9be95417288c0e1099b1eeec3 # v2.7.7
- name: Format
run: cargo fmt --all -- --check --verbose
- name: Build
Expand Down
106 changes: 46 additions & 60 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 enclave/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -13,14 +13,14 @@ name = "enclave-vault"
path = "src/main.rs"

[dependencies]
anyhow = { version = "=1.0.94", default-features = false }
anyhow = { version = "=1.0.95", default-features = false }
aws-lc-rs = { version = "=1.12.0", default-features = false }
byteorder = { version = "=1.5.0", default-features = false }
cel-interpreter = { version = "=0.9.0", default-features = false, features = ["json", "chrono"] }
chrono = { version = "=0.4.39", default-features = false, features = ["now"] }
data-encoding = { version = "=2.6.0", default-features = false, features = ["alloc"] }
serde = { version = "=1.0.216", default-features = false, features = ["derive"] }
serde_json = { version = "=1.0.133", default-features = false }
serde = { version = "=1.0.217", default-features = false, features = ["derive"] }
serde_json = { version = "=1.0.134", default-features = false }
rustls = { version = "=0.23.20", default-features = false, features = ["aws_lc_rs"] }
vsock = { version = "=0.5.1", default-features = false }
zeroize = { version = "=1.8.1", default-features = false, features = ["zeroize_derive"] }
2 changes: 1 addition & 1 deletion enclave/src/expressions.rs
Original file line number Diff line number Diff line change
Expand Up @@ -185,7 +185,7 @@ mod tests {
let expected: BTreeMap<String, Value> = BTreeMap::from([
("first_name".into(), "Bob".into()),
("birth_date".into(), "1979-01-01".into()),
("age".into(), 45.into()),
("age".into(), 46.into()),
]);

let actual = execute_expressions(&fields, &expressions).unwrap();
Expand Down
12 changes: 6 additions & 6 deletions parent/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -14,16 +14,16 @@ name = "parent-vault"
path = "src/main.rs"

[dependencies]
anyhow = { version = "=1.0.94", default-features = false }
aws-config = { version = "=1.5.11", default-features = false, features = ["rustls", "rt-tokio", "behavior-version-latest"] }
anyhow = { version = "=1.0.95", default-features = false }
aws-config = { version = "=1.5.12", default-features = false, features = ["rustls", "rt-tokio", "behavior-version-latest"] }
aws-credential-types = { version = "=1.2.1", default-features = false }
axum = { version = "=0.7.9", default-features = false, features = ["http1", "json", "tokio", "tracing"] }
axum = { version = "=0.8.1", default-features = false, features = ["http1", "json", "tokio", "tracing"] }
byteorder = { version = "=1.5.0", default-features = false }
clap = { version = "=4.5.23", default-features = false, features = ["std", "derive", "env"] }
fastrand = { version = "=2.3.0", default-features = false }
serde = { version = "=1.0.216", default-features = false, features = ["derive"] }
serde_json = { version = "=1.0.133", default-features = false }
thiserror = { version = "=2.0.8", default-features = false }
serde = { version = "=1.0.217", default-features = false, features = ["derive"] }
serde_json = { version = "=1.0.134", default-features = false }
thiserror = { version = "=2.0.9", default-features = false }
tokio = { version = "=1.42.0", default-features = false, features = ["rt-multi-thread", "process", "tracing"] }
tracing = { version = "=0.1.41", default-features = false, features = ["log"] }
tracing-subscriber = { version = "=0.3.19", default-features = false, features = ["ansi", "env-filter", "fmt", "json"] }
Expand Down
6 changes: 3 additions & 3 deletions parent/src/application.rs
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ pub struct AppState {

pub struct Application {
port: u16,
server: Serve<Router, Router>,
server: Serve<TcpListener, Router, Router>,
}

impl Application {
Expand All @@ -41,7 +41,7 @@ impl Application {
}

pub async fn run_until_stopped(self) -> Result<(), std::io::Error> {
self.server.tcp_nodelay(true).await
self.server.await
}
}

Expand All @@ -50,7 +50,7 @@ pub fn run(
listener: TcpListener,
options: ParentOptions,
enclaves: Arc<Enclaves>,
) -> Result<Serve<Router, Router>, std::io::Error> {
) -> Result<Serve<TcpListener, Router, Router>, std::io::Error> {
let state = Arc::new(AppState { options, enclaves });

let app = Router::new()
Expand Down
Loading

0 comments on commit bcde4d2

Please sign in to comment.