Skip to content

Commit

Permalink
chore: slight updates to properly publish as a crate (#1480)
Browse files Browse the repository at this point in the history
* chore: make dafny runtime publishable
  • Loading branch information
ajewellamz authored Dec 4, 2024
1 parent 97dde01 commit aa9175b
Show file tree
Hide file tree
Showing 7 changed files with 14 additions and 11 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/library_rust_tests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -57,7 +57,7 @@ jobs:
- name: Setup Dafny
uses: dafny-lang/[email protected]
with:
dafny-version: nightly-latest
dafny-version: nightly-2024-12-03-4954170

# Remove this after the formatting in Rust starts working
- name: smithy-dafny Rust hacks
Expand Down
4 changes: 2 additions & 2 deletions DynamoDbEncryption/runtimes/rust/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ name = "aws-db-esdk"
version = "0.1.0"
edition = "2021"
rust-version = "1.80.0"
keywords = ["crypto", "cryptography", "security", "dynamodb", "ddb", "encryption", "client-side", "clientside"]
keywords = ["cryptography", "security", "dynamodb", "encryption", "client-side"]
license = "ISC AND (Apache-2.0 OR ISC)"
description = "aws-db-esdk is a library for implementing client side encryption with DynamoDB."
homepage = "https://github.com/aws/aws-database-encryption-sdk-dynamodb/tree/main/releases/rust/db_esdk"
Expand All @@ -24,7 +24,7 @@ aws-sdk-kms = "1.50.0"
aws-smithy-runtime-api = {version = "1.7.3", features = ["client"] }
aws-smithy-types = "1.2.9"
chrono = "0.4.38"
dafny_runtime = { path = "../../../submodules/MaterialProviders/smithy-dafny/TestModels/dafny-dependencies/dafny_runtime_rust"}
dafny-runtime = "0.1.1"
dashmap = "6.1.0"
pem = "3.0.4"
tokio = {version = "1.41.1", features = ["full"] }
Expand Down
2 changes: 0 additions & 2 deletions DynamoDbEncryption/runtimes/rust/src/intercept.rs
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,6 @@ use aws_sdk_dynamodb::{
use aws_smithy_runtime_api::client::interceptors::context::Input;
use aws_smithy_types::config_bag::{Storable, StoreReplace};

#[macro_export]
macro_rules! modify_request {
($cfg:ident,$request:ident,$self:ident,$transform:ident) => {{
// store the original request
Expand Down Expand Up @@ -44,7 +43,6 @@ macro_rules! modify_request {
}};
}

#[macro_export]
macro_rules! modify_response {
($cfg:ident,$type:ty,$response:ident,$self:ident,$transform:ident) => {{
// retrieve the original request
Expand Down
4 changes: 2 additions & 2 deletions releases/rust/db_esdk/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ name = "aws-db-esdk"
version = "0.1.0"
edition = "2021"
rust-version = "1.80.0"
keywords = ["crypto", "cryptography", "security", "dynamodb", "ddb", "encryption", "client-side", "clientside"]
keywords = ["cryptography", "security", "dynamodb", "encryption", "client-side"]
license = "ISC AND (Apache-2.0 OR ISC)"
description = "aws-db-esdk is a library for implementing client side encryption with DynamoDB."
homepage = "https://github.com/aws/aws-database-encryption-sdk-dynamodb/tree/main/releases/rust/db_esdk"
Expand All @@ -24,7 +24,7 @@ aws-sdk-kms = "1.50.0"
aws-smithy-runtime-api = {version = "1.7.3", features = ["client"] }
aws-smithy-types = "1.2.9"
chrono = "0.4.38"
dafny_runtime = { path = "./dafny_runtime_rust"}
dafny-runtime = "0.1.1"
dashmap = "6.1.0"
pem = "3.0.4"
tokio = {version = "1.41.1", features = ["full"] }
Expand Down
10 changes: 8 additions & 2 deletions releases/rust/db_esdk/dafny_runtime_rust/Cargo.toml
Original file line number Diff line number Diff line change
@@ -1,7 +1,13 @@
[package]
name = "dafny_runtime"
version = "0.1.0"
name = "dafny-runtime"
version = "0.1.1"
edition = "2021"
keywords = ["dafny"]
license = "ISC AND (Apache-2.0 OR ISC)"
description = "dafny-runtime is the runtime support library for Rust code gerated from Dafny."
repository = "https://github.com/aws/aws-database-encryption-sdk-dynamodb/tree/main/releases/rust/db_esdk/dafny_runtime_rust"
authors = ["AWS-CryptoTools"]
readme = "README.md"

[dependencies]
once_cell = "1.18.0"
Expand Down
1 change: 1 addition & 0 deletions releases/rust/db_esdk/dafny_runtime_rust/README.md
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
This is the runtime support library for Rust code generated from Dafny.
2 changes: 0 additions & 2 deletions releases/rust/db_esdk/src/intercept.rs
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,6 @@ use aws_sdk_dynamodb::{
use aws_smithy_runtime_api::client::interceptors::context::Input;
use aws_smithy_types::config_bag::{Storable, StoreReplace};

#[macro_export]
macro_rules! modify_request {
($cfg:ident,$request:ident,$self:ident,$transform:ident) => {{
// store the original request
Expand Down Expand Up @@ -44,7 +43,6 @@ macro_rules! modify_request {
}};
}

#[macro_export]
macro_rules! modify_response {
($cfg:ident,$type:ty,$response:ident,$self:ident,$transform:ident) => {{
// retrieve the original request
Expand Down

0 comments on commit aa9175b

Please sign in to comment.