Skip to content

Commit

Permalink
fix(tracing): rename lib name from forest_filecoin to forest
Browse files Browse the repository at this point in the history
  • Loading branch information
hanabi1224 committed Jan 10, 2025
1 parent a253956 commit 4bf1a10
Show file tree
Hide file tree
Showing 9 changed files with 12 additions and 9 deletions.
3 changes: 3 additions & 0 deletions Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,9 @@ license = "MIT OR Apache-2.0"
description = "Rust Filecoin implementation."
exclude = [".config", ".github", ".maintain", "documentation", "scripts", "interop-tests", "go.work*"]

[lib]
name = "forest"

[workspace.dependencies]
anyhow = "1"
cid = { version = "0.11", default-features = false, features = ["std"] }
Expand Down
2 changes: 1 addition & 1 deletion interop-tests/src/tests/bitswap_go_compat.rs
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@

use super::go_ffi::*;
use cid::Cid;
use forest_filecoin::interop_tests_private::libp2p_bitswap::{
use forest::interop_tests_private::libp2p_bitswap::{
BitswapBehaviour, BitswapBehaviourEvent, BitswapMessage, BitswapRequest, BitswapResponse,
};
use libp2p::{
Expand Down
2 changes: 1 addition & 1 deletion interop-tests/src/tests/kad_go_compat.rs
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@

use super::go_ffi::*;

use forest_filecoin::interop_tests_private::libp2p::discovery::new_kademlia;
use forest::interop_tests_private::libp2p::discovery::new_kademlia;
use futures::StreamExt as _;
use libp2p::{
identify, identity, kad, noise, swarm::SwarmEvent, tcp, yamux, Multiaddr, StreamProtocol,
Expand Down
2 changes: 1 addition & 1 deletion src/bin/forest-cli.rs
Original file line number Diff line number Diff line change
Expand Up @@ -2,5 +2,5 @@
// SPDX-License-Identifier: Apache-2.0, MIT

fn main() -> anyhow::Result<()> {
forest_filecoin::forest_main(std::env::args_os())
forest::forest_main(std::env::args_os())
}
2 changes: 1 addition & 1 deletion src/bin/forest-tool.rs
Original file line number Diff line number Diff line change
Expand Up @@ -2,5 +2,5 @@
// SPDX-License-Identifier: Apache-2.0, MIT

fn main() -> anyhow::Result<()> {
forest_filecoin::forest_tool_main(std::env::args_os())
forest::forest_tool_main(std::env::args_os())
}
2 changes: 1 addition & 1 deletion src/bin/forest-wallet.rs
Original file line number Diff line number Diff line change
Expand Up @@ -2,5 +2,5 @@
// SPDX-License-Identifier: Apache-2.0, MIT

fn main() -> anyhow::Result<()> {
forest_filecoin::forest_wallet_main(std::env::args_os())
forest::forest_wallet_main(std::env::args_os())
}
2 changes: 1 addition & 1 deletion src/bin/forest.rs
Original file line number Diff line number Diff line change
Expand Up @@ -2,5 +2,5 @@
// SPDX-License-Identifier: Apache-2.0, MIT

fn main() -> anyhow::Result<()> {
forest_filecoin::forestd_main(std::env::args_os())
forest::forestd_main(std::env::args_os())
}
2 changes: 1 addition & 1 deletion tests/config.rs
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
// SPDX-License-Identifier: Apache-2.0, MIT
use std::io::Write;

use forest_filecoin::{Client, Config};
use forest::{Client, Config};
use tempfile::TempDir;

pub mod common;
Expand Down
4 changes: 2 additions & 2 deletions tests/keystore_tests.rs
Original file line number Diff line number Diff line change
Expand Up @@ -3,8 +3,8 @@

pub mod common;

use forest_filecoin::{verify_token, JWT_IDENTIFIER};
use forest_filecoin::{
use forest::{verify_token, JWT_IDENTIFIER};
use forest::{
KeyStore, KeyStoreConfig, ENCRYPTED_KEYSTORE_NAME, FOREST_KEYSTORE_PHRASE_ENV, KEYSTORE_NAME,
};

Expand Down

0 comments on commit 4bf1a10

Please sign in to comment.