This is an automated email from the ASF dual-hosted git repository.
wangweipeng pushed a commit to branch main
in repository https://gitbox.apache.org/repos/asf/incubator-fury-site.git
The following commit(s) were added to refs/heads/main by this push:
new 5e0754a Fix incorrent usage (#103)
5e0754a is described below
commit 5e0754a5cb2559668eaf3cc5937bf16f3d90db37
Author: weipeng <[email protected]>
AuthorDate: Mon Feb 26 21:52:05 2024 +0800
Fix incorrent usage (#103)
There are some incorrent usage in guide, should fix it
---
docs/start/install.md | 1 -
docs/start/usage.md | 7 +++----
2 files changed, 3 insertions(+), 5 deletions(-)
diff --git a/docs/start/install.md b/docs/start/install.md
index 69d3875..f9cc5d7 100644
--- a/docs/start/install.md
+++ b/docs/start/install.md
@@ -84,7 +84,6 @@ npm install @furyjs/fury
[dependencies]
fury = { git= "https://github.com/apache/incubator-fury.git", branch = "main" }
-fury_derive = { git= "https://github.com/apache/incubator-fury.git", branch =
"main" }
lazy_static = { version = "1.4.0" }
```
diff --git a/docs/start/usage.md b/docs/start/usage.md
index 14523af..b9d5999 100644
--- a/docs/start/usage.md
+++ b/docs/start/usage.md
@@ -148,17 +148,16 @@ console.log(result);
### Rust
```rust
-use fury::{from_buffer, to_buffer};
-use fury_derive::{Deserialize, FuryMeta, Serialize};
+use fury::{from_buffer, to_buffer, Fury};
-#[derive(FuryMeta, Deserialize, Serialize, Debug, PartialEq)]
+#[derive(Fury, Debug, PartialEq)]
#[tag("example.foo")]
struct Animal {
name: String,
category: String,
}
-#[derive(FuryMeta, Deserialize, Serialize, Debug, PartialEq)]
+#[derive(Fury, Debug, PartialEq)]
#[tag("example.bar")]
struct Person {
name: String,
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]