Skip to content

Commit

Permalink
feat: add Constructor Rust TestModel (#426)
Browse files Browse the repository at this point in the history
*Issue #, if available:*
Resolves #401 

*Description of changes:*

also adds `.project` / `.classpath ` / `.settings` java files to gitignore
  • Loading branch information
andrewbanchich authored Jul 16, 2024
1 parent 1c23ec6 commit a0fd2c5
Show file tree
Hide file tree
Showing 32 changed files with 2,407 additions and 1,158 deletions.
4 changes: 4 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -7,3 +7,7 @@
/codegen/smithy-dafny-codegen/bin
/codegen/smithy-dafny-codegen-cli/bin
/smithy-dafny-conversion/bin

.project
.classpath
.settings
1,134 changes: 1,134 additions & 0 deletions TestModels/Constructor/codegen-patches/rust/dafny-4.5.0.patch

Large diffs are not rendered by default.

3 changes: 1 addition & 2 deletions TestModels/Constructor/runtimes/rust/Cargo.toml
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
[package]
name = "stub"
name = "constructor"
version = "0.1.0"
edition = "2021"

Expand All @@ -11,7 +11,6 @@ aws-smithy-runtime-api = {version = "1.7.0", features = ["client"] }
aws-smithy-types = "1.2.0"
dafny_runtime = { path = "../../../dafny-dependencies/dafny_runtime_rust"}
dafny_standard_library = { path = "../../../dafny-dependencies/StandardLibrary/runtimes/rust"}
stub_dafny = { path = "./dafny_impl"}

[dev-dependencies.tokio]
version = "1.26.0"
Expand Down
4 changes: 2 additions & 2 deletions TestModels/Constructor/runtimes/rust/README.md
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
This directory is the code generation target for the SimpleStub model when targetting Rust.
This directory is the code generation target for the Constructor model when targetting Rust.

Like the other targets, the crate is a combination of the output of three different components:

Expand All @@ -8,7 +8,7 @@ Like the other targets, the crate is a combination of the output of three differ

Most of the `smithy-rs` output is not modified,
only trimmed down to cut out components that aren't relevant for Polymorph libraries.
The main exception is `client.rs` and the operation builders such as `operation/get_stub.rs`,
The main exception is `client.rs` and the operation builders such as `operation/get_constructor.rs`,
which instantiate the underlying Dafny client implementation and invoke operations on it, respectively,
instead of sending the operation value through an orchestrated plugin stack
that eventually serializes it and sends it to a remote service endpoint.
Expand Down
13 changes: 0 additions & 13 deletions TestModels/Constructor/runtimes/rust/dafny_impl/Cargo.toml

This file was deleted.

Loading

0 comments on commit a0fd2c5

Please sign in to comment.