Browse Source

chore: add flowy-grid crate

appflowy 3 years ago
parent
commit
5549cff177

+ 4 - 0
frontend/rust-lib/Cargo.lock

@@ -1038,6 +1038,10 @@ dependencies = [
  "uuid",
 ]
 
+[[package]]
+name = "flowy-grid"
+version = "0.1.0"
+
 [[package]]
 name = "flowy-net"
 version = "0.1.0"

+ 1 - 0
frontend/rust-lib/Cargo.toml

@@ -14,6 +14,7 @@ members = [
   "flowy-block",
   "flowy-error",
   "flowy-sync",
+  "flowy-grid",
 ]
 
 [profile.dev]

+ 8 - 0
frontend/rust-lib/flowy-grid/Cargo.toml

@@ -0,0 +1,8 @@
+[package]
+name = "flowy-grid"
+version = "0.1.0"
+edition = "2021"
+
+# See more keys and their definitions at https://doc.rust-lang.org/cargo/reference/manifest.html
+
+[dependencies]

+ 8 - 0
frontend/rust-lib/flowy-grid/src/lib.rs

@@ -0,0 +1,8 @@
+#[cfg(test)]
+mod tests {
+    #[test]
+    fn it_works() {
+        let result = 2 + 2;
+        assert_eq!(result, 4);
+    }
+}

+ 1 - 0
frontend/rust-lib/flowy-sdk/src/lib.rs

@@ -77,6 +77,7 @@ fn crate_log_filter(level: String) -> String {
     filters.push(format!("flowy_database={}", "info"));
     filters.push(format!("flowy_net={}", "info"));
     filters.push(format!("flowy_sync={}", "info"));
+    filters.push(format!("flowy_sync={}", "info"));
     filters.join(",")
 }