-
Notifications
You must be signed in to change notification settings - Fork 9
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
build(proto): move build script to separate pkg (#30)
It was impossible to publish the `archway-proto` crate because it depends on the `archway-network` submodule, which is unavailable during the isolated build process. Following the same approach as `cosmos-rust` and other projects, moving the proto compilation from the `build.rs` script in the package to a standalone binary was necessary.
- Loading branch information
Showing
5 changed files
with
42 additions
and
19 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
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -30,12 +30,6 @@ tonic = { version = "0.9.2", optional = true, default-features = false, features | |
# [email protected] is the latest version for the cosmos-sdk 0.45.x protos | ||
cosmos-sdk-proto = { version = "0.18.0", default-features = false } | ||
|
||
[build-dependencies] | ||
error-chain = "0.12.4" | ||
glob = "0.3.1" | ||
regex = "1.9.3" | ||
tonic-build = "0.9.2" | ||
|
||
[features] | ||
default = ["grpc-transport"] | ||
grpc-transport = ["grpc", "tonic/transport", "cosmos-sdk-proto/grpc-transport"] | ||
|
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 @@ | ||
[package] | ||
name = "proto-build" | ||
version = "0.1.0" | ||
edition = "2021" | ||
description = "Build script for archway-proto" | ||
authors.workspace = true | ||
license.workspace = true | ||
repository.workspace = true | ||
homepage.workspace = true | ||
publish = false | ||
|
||
[dependencies] | ||
error-chain = "0.12.4" | ||
glob = "0.3.1" | ||
regex = "1.9.3" | ||
tonic-build = "0.9.2" |
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