Skip to content

Bring projects, wikis, and teams together with AI. AppFlowy is the AI collaborative workspace where you achieve more without losing control of your data. The leading open source Notion alternative.

[rust]: update flowy-log name

appflowya06a2b9e5b5c
diff --git a/rust-lib/Cargo.toml b/rust-lib/Cargo.toml
index c27fbd122b..1a06df016a 100644
--- a/rust-lib/Cargo.toml
+++ b/rust-lib/Cargo.toml
@@ -3,7 +3,7 @@ members = [
"lib-dispatch",
"flowy-sdk",
"dart-ffi",
- "flowy-log",
+ "lib-log",
"flowy-user",
"flowy-user-infra",
"flowy-ast",
diff --git a/rust-lib/flowy-sdk/Cargo.toml b/rust-lib/flowy-sdk/Cargo.toml
index a6b9f2f795..0b0b7faa27 100644
--- a/rust-lib/flowy-sdk/Cargo.toml
+++ b/rust-lib/flowy-sdk/Cargo.toml
@@ -7,7 +7,7 @@ edition = "2018"
[dependencies]
lib-dispatch = { path = "../lib-dispatch" }
-flowy-log = { path = "../flowy-log" }
+lib-log = { path = "../lib-log" }
flowy-user = { path = "../flowy-user" }
lib-infra = { path = "../lib-infra" }
flowy-workspace = { path = "../flowy-workspace", default-features = false }
@@ -34,4 +34,4 @@ futures-util = "0.3.15"
[features]
http_server = ["flowy-user/http_server", "flowy-workspace/http_server", "flowy-document/http_server"]
-use_bunyan = ["flowy-log/use_bunyan"]
\ No newline at end of file
+use_bunyan = ["lib-log/use_bunyan"]
\ No newline at end of file
diff --git a/rust-lib/flowy-sdk/src/lib.rs b/rust-lib/flowy-sdk/src/lib.rs
index faa99e5416..3885ce3984 100644
--- a/rust-lib/flowy-sdk/src/lib.rs
+++ b/rust-lib/flowy-sdk/src/lib.rs
@@ -151,7 +151,7 @@ fn init_log(config: &FlowySDKConfig) {
if !INIT_LOG.load(Ordering::SeqCst) {
INIT_LOG.store(true, Ordering::SeqCst);
- let _ = flowy_log::Builder::new("flowy-client", &config.root)
+ let _ = lib_log::Builder::new("flowy-client", &config.root)
.env_filter(&config.log_filter)
.build();
}
diff --git a/rust-lib/flowy-log/Cargo.toml b/rust-lib/lib-log/Cargo.toml
similarity index 94%
rename from rust-lib/flowy-log/Cargo.toml
rename to rust-lib/lib-log/Cargo.toml
index e3b9e84396..07337a7576 100644
--- a/rust-lib/flowy-log/Cargo.toml
+++ b/rust-lib/lib-log/Cargo.toml
@@ -1,5 +1,5 @@
[package]
-name = "flowy-log"
+name = "lib-log"
version = "0.1.0"
edition = "2018"
diff --git a/rust-lib/flowy-log/flowy_log_test.2021-11-09 b/rust-lib/lib-log/flowy_log_test.2021-11-09
similarity index 100%
rename from rust-lib/flowy-log/flowy_log_test.2021-11-09
rename to rust-lib/lib-log/flowy_log_test.2021-11-09
diff --git a/rust-lib/flowy-log/src/layer.rs b/rust-lib/lib-log/src/layer.rs
similarity index 100%
rename from rust-lib/flowy-log/src/layer.rs
rename to rust-lib/lib-log/src/layer.rs
diff --git a/rust-lib/flowy-log/src/lib.rs b/rust-lib/lib-log/src/lib.rs
similarity index 100%
rename from rust-lib/flowy-log/src/lib.rs
rename to rust-lib/lib-log/src/lib.rs