-
Notifications
You must be signed in to change notification settings - Fork 83
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
check in the proto types and have a standalone generator helper (rath…
…er than generate at build time) Signed-off-by: George Mulhearn <[email protected]>
- Loading branch information
1 parent
d40d9c7
commit b39bc4c
Showing
23 changed files
with
1,193 additions
and
34 deletions.
There are no files selected for viewing
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,3 @@ | ||
# DID Cheqd Resolver | ||
|
||
TODO - explain dev maintainence of generated protos |
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,11 @@ | ||
[package] | ||
name = "cheqd_proto_gen" | ||
version = "0.1.0" | ||
edition = "2021" | ||
|
||
[[bin]] | ||
name = "cheqd-proto-gen" | ||
path = "src/main.rs" | ||
|
||
[dependencies] | ||
tonic-build = "0.12.3" |
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
16 changes: 16 additions & 0 deletions
16
did_core/did_methods/did_cheqd/cheqd_proto_gen/src/main.rs
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,16 @@ | ||
//! Binary for re-generating the cheqd proto types | ||
fn main() -> Result<(), Box<dyn std::error::Error>> { | ||
let crate_dir = env!("CARGO_MANIFEST_DIR").to_string(); | ||
|
||
tonic_build::configure() | ||
.build_server(false) | ||
.out_dir(crate_dir.clone() + "/../src/proto") | ||
.compile_protos( | ||
&[ | ||
crate_dir.clone() + "/proto/cheqd/did/v2/query.proto", | ||
crate_dir.clone() + "/proto/cheqd/resource/v2/query.proto", | ||
], | ||
&[crate_dir + "/proto"], | ||
)?; | ||
Ok(()) | ||
} |
This file was deleted.
Oops, something went wrong.
Oops, something went wrong.