This is an automated email from the ASF dual-hosted git repository.
chaokunyang pushed a commit to branch main
in repository https://gitbox.apache.org/repos/asf/incubator-fury.git
The following commit(s) were added to refs/heads/main by this push:
new 74b221f2 chore(Rust): remove fury-derive (#1385)
74b221f2 is described below
commit 74b221f2d81c4532f0fe13e730dcc564295968cd
Author: weipeng <[email protected]>
AuthorDate: Mon Feb 26 22:17:15 2024 +0800
chore(Rust): remove fury-derive (#1385)
Remove `fury-derive` as `fury::Fury` is enough to do the job. Closes
#1384
---
docs/guide/xlang_object_graph_guide.md | 8 +++-----
rust/fury/src/serializer.rs | 4 ++--
rust/tests/tests/test_complex_struct.rs | 3 +--
3 files changed, 6 insertions(+), 9 deletions(-)
diff --git a/docs/guide/xlang_object_graph_guide.md
b/docs/guide/xlang_object_graph_guide.md
index a8349603..62ae1880 100644
--- a/docs/guide/xlang_object_graph_guide.md
+++ b/docs/guide/xlang_object_graph_guide.md
@@ -115,13 +115,12 @@ console.log(result);
```rust
use chrono::{NaiveDate, NaiveDateTime};
-use fury::{from_buffer, to_buffer};
-use fury_derive::Fury;
+use fury::{from_buffer, to_buffer, Fury};
use std::collections::HashMap;
fn run() {
let bin: Vec<u8> = to_buffer(&"hello".to_string());
- let obj: String = from_buffer(&bin2).expect("should success");
+ let obj: String = from_buffer(&bin).expect("should success");
assert_eq!("hello".to_string(), obj);
}
```
@@ -339,8 +338,7 @@ console.log(result);
```rust
use chrono::{NaiveDate, NaiveDateTime};
-use fury::{from_buffer, to_buffer};
-use fury_derive::Fury;
+use fury::{from_buffer, to_buffer, Fury};
use std::collections::HashMap;
#[test]
diff --git a/rust/fury/src/serializer.rs b/rust/fury/src/serializer.rs
index 3c785ddf..e1e982e9 100644
--- a/rust/fury/src/serializer.rs
+++ b/rust/fury/src/serializer.rs
@@ -23,7 +23,7 @@
//! # Examples:
//! ```
//!
-//! use fury_derive::Fury;
+//! use fury::Fury;
//! #[derive(Fury)]
//! #[tag("example.foo2")]
//! struct Animal {
@@ -31,7 +31,7 @@
//! }
//!
//! ```
-//! fury_derive would expand the code and automatic implements the Serialize
trait
+//! fury::Fury would expand the code and automatic implements the Serialize
trait
use super::buffer::Writer;
use super::types::{config_flags, FuryMeta, Language, RefFlag,
SIZE_OF_REF_AND_TYPE};
diff --git a/rust/tests/tests/test_complex_struct.rs
b/rust/tests/tests/test_complex_struct.rs
index 4f80799b..cc4a5b92 100644
--- a/rust/tests/tests/test_complex_struct.rs
+++ b/rust/tests/tests/test_complex_struct.rs
@@ -16,8 +16,7 @@
// under the License.
use chrono::{NaiveDate, NaiveDateTime};
-use fury::{from_buffer, to_buffer};
-use fury_derive::Fury;
+use fury::{from_buffer, to_buffer, Fury};
use std::collections::HashMap;
#[test]
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]