diff --git a/Cargo.lock b/Cargo.lock index 2576949..18fdc6d 100644 --- a/Cargo.lock +++ b/Cargo.lock @@ -1083,6 +1083,7 @@ version = "0.1.0" dependencies = [ "eyre", "terustform", + "terustform-macros", "tokio", ] diff --git a/terraform-provider-example/Cargo.toml b/terraform-provider-example/Cargo.toml index 6886fb8..060acba 100644 --- a/terraform-provider-example/Cargo.toml +++ b/terraform-provider-example/Cargo.toml @@ -6,5 +6,6 @@ edition = "2021" [dependencies] eyre = "0.6.12" terustform = { path = "../terustform" } +terustform-macros = { path = "../terustform-macros" } tokio = { version = "1.37.0", features = ["full"] } diff --git a/terraform-provider-example/src/main.rs b/terraform-provider-example/src/main.rs index 614ca32..ce6809b 100644 --- a/terraform-provider-example/src/main.rs +++ b/terraform-provider-example/src/main.rs @@ -29,6 +29,7 @@ impl Provider for ExampleProvider { struct ExampleDataSource {} +#[derive(terustform_macros::DataSourceModel)] struct _ExampleDataSourceModel { name: StringValue, }