-
Notifications
You must be signed in to change notification settings - Fork 15
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat(node): Revert iota-proxy and update it to the latest upstream (#…
…4391) * Revert "feat(crates): remove iota-proxy crate (#1319)" This reverts commit 80a89a0. * chores: Update dependency * Revert "feat(iota-node, iota-config, iota-swarm-config): remove metrics client push (#1377)" This reverts commit b9d1ea5. * cherry pick: Update to latest iota-proxy * chores: Format codes * cherry pick: Update iota-node/metrics to latest upstream * chores: sort Cargo.toml * feat(docker): Add docker build script for iota-proxy * chores: Fix typo * chores: Add newline after headers * chores: Remove ipnetwork from dependency * chores: Add newline after headers in iota-node metrics.rs * fix: Adapt version from workspace an update authors * refactor: Use Self instead of BridgeSummary in default() * chore: update Cargo.lock * Update jemalloc setup in iota-proxy docker file * chores: Update Cargo.lock * fix: use correct push-url values for testnet and mainnet * fix: rename header check func * feat: remove hard-coded default remote-write url * fix: remove the unnecessary inventory hostname label and env variable since it is only used for a debug log anyway --------- Co-authored-by: Alexander Sporn <[email protected]> Co-authored-by: Thibault Martinez <[email protected]>
- Loading branch information
1 parent
bf68fbb
commit e6bb362
Showing
29 changed files
with
3,890 additions
and
9 deletions.
There are no files selected for viewing
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
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
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,61 @@ | ||
[package] | ||
name = "iota-proxy" | ||
version.workspace = true | ||
authors = ["IOTA Foundation <[email protected]>"] | ||
edition = "2021" | ||
license = "Apache-2.0" | ||
publish = false | ||
|
||
[dependencies] | ||
# external dependencies | ||
anyhow.workspace = true | ||
axum.workspace = true | ||
axum-extra.workspace = true | ||
axum-server.workspace = true | ||
bytes.workspace = true | ||
clap.workspace = true | ||
const-str.workspace = true | ||
fastcrypto.workspace = true | ||
futures.workspace = true | ||
git-version.workspace = true | ||
hex.workspace = true | ||
hyper.workspace = true | ||
itertools.workspace = true | ||
multiaddr = "0.17.0" | ||
once_cell.workspace = true | ||
prometheus.workspace = true | ||
prost.workspace = true | ||
protobuf.workspace = true | ||
rand.workspace = true | ||
reqwest.workspace = true | ||
rustls.workspace = true | ||
rustls-pemfile = "2.1.2" | ||
serde.workspace = true | ||
serde_json.workspace = true | ||
serde_with.workspace = true | ||
serde_yaml.workspace = true | ||
snap.workspace = true | ||
tokio = { workspace = true, features = ["full"] } | ||
tower.workspace = true | ||
tower-http.workspace = true | ||
tracing.workspace = true | ||
url.workspace = true | ||
|
||
# internal dependencies | ||
iota-metrics.workspace = true | ||
iota-tls.workspace = true | ||
iota-types.workspace = true | ||
telemetry-subscribers.workspace = true | ||
|
||
[dev-dependencies] | ||
# external dependencies | ||
axum-server.workspace = true | ||
mime = "0.3" | ||
serde_json.workspace = true | ||
tower.workspace = true | ||
|
||
# internal dependencies | ||
iota-types = { workspace = true, features = ["test-utils"] } | ||
|
||
[build-dependencies] | ||
prost-build = "0.13.1" |
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,18 @@ | ||
// Copyright (c) Mysten Labs, Inc. | ||
// Modifications Copyright (c) 2024 IOTA Stiftung | ||
// SPDX-License-Identifier: Apache-2.0 | ||
|
||
use std::io::Result; | ||
fn main() -> Result<()> { | ||
println!("cargo:rerun-if-changed=build.rs"); | ||
println!("cargo:rerun-if-env-changed=BUILD_REMOTE_WRITE"); | ||
|
||
// add this env var to build. you'll need protoc installed locally and a copy of | ||
// the proto files | ||
if option_env!("BUILD_REMOTE_WRITE").is_some() { | ||
prost_build::compile_protos(&["protobufs/remote.proto", "protobufs/types.proto"], &[ | ||
"protobufs/", | ||
])?; | ||
} | ||
Ok(()) | ||
} |
Oops, something went wrong.