-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #7 from telosnetwork/crate_changes
Crate changes
- Loading branch information
Showing
11 changed files
with
120 additions
and
90 deletions.
There are no files selected for viewing
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -2,5 +2,16 @@ | |
resolver = "2" | ||
members = [ | ||
"crates/antelope", | ||
"crates/antelope_macros", | ||
] | ||
"crates/macros", | ||
] | ||
|
||
[workspace.package] | ||
version = "0.1.0" | ||
edition = "2021" | ||
rust-version = "1.75" | ||
authors = ["Jesse Schulman <[email protected]>"] | ||
license = "MIT OR Apache-2.0" | ||
homepage = "https://github.com/telosnetwork/antelope-rs" | ||
repository = "https://github.com/telosnetwork/antelope-rs" | ||
keywords = ["blockchain", "antelope"] | ||
categories = ["cryptography::cryptocurrencies", "encoding"] |
File renamed without changes.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,21 @@ | ||
MIT License | ||
|
||
Copyright (c) [year] [fullname] | ||
|
||
Permission is hereby granted, free of charge, to any person obtaining a copy | ||
of this software and associated documentation files (the "Software"), to deal | ||
in the Software without restriction, including without limitation the rights | ||
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell | ||
copies of the Software, and to permit persons to whom the Software is | ||
furnished to do so, subject to the following conditions: | ||
|
||
The above copyright notice and this permission notice shall be included in all | ||
copies or substantial portions of the Software. | ||
|
||
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR | ||
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, | ||
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE | ||
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER | ||
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, | ||
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE | ||
SOFTWARE. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,7 +1,31 @@ | ||
# AntelopeIO Rust SDK | ||
|
||
[<img alt="Crates.io Version" src="https://img.shields.io/crates/v/antelope-client?style=for-the-badge&logo=rust">](https://crates.io/crates/antelope-client) | ||
[<img alt="docs.rs" src="https://img.shields.io/docsrs/antelope-client?style=for-the-badge&logo=docs.rs&label=docs.rs">](https://docs.rs/antelope-client) | ||
[<img alt="GitHub Workflow Status (with event)" src="https://img.shields.io/github/actions/workflow/status/telosnetwork/antelope-rs/on_push.yml?style=for-the-badge&logo=github">](https://github.com/telosnetwork/antelope-rs/actions) | ||
|
||
### Reference libraries to use as examples when building: | ||
## Description | ||
A Rust library for interacting with Antelope blockchains. Currently a work in progress, interfaces may change before the `1.0.0` release is cut. | ||
|
||
- Python: `https://github.com/guilledk/py-leap/blob/multi_push_action/src/leap/protocol.py` | ||
- Typescript: `https://github.com/wharfkit/antelope/blob/master/src/serializer/encoder.ts` | ||
## Documentation | ||
https://docs.rs/antelope-client | ||
|
||
## License | ||
Licensed under either of | ||
|
||
* Apache License, Version 2.0 | ||
([LICENSE-APACHE](LICENSE-APACHE) or http://www.apache.org/licenses/LICENSE-2.0) | ||
* MIT license | ||
([LICENSE-MIT](LICENSE-MIT) or http://opensource.org/licenses/MIT) | ||
|
||
at your option. | ||
|
||
## Contribution | ||
Unless you explicitly state otherwise, any contribution intentionally submitted | ||
for inclusion in the work by you, as defined in the Apache-2.0 license, shall be | ||
dual licensed as above, without any additional terms or conditions. | ||
|
||
## Credits | ||
Much of this library (especially the tests & test data) was derived from the [WharfKit typescript client](https://github.com/wharfkit/antelope) | ||
|
||
The rust serialization/deserialization via the Packer trait, as well as many of the types are from [rscdk](https://github.com/uuosio/rscdk) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -4,3 +4,5 @@ pub mod chain; | |
pub mod crypto; | ||
pub mod serializer; | ||
pub mod util; | ||
|
||
pub use antelope_macros::StructPacker; |
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,22 @@ | ||
[package] | ||
name = "antelope-client-macros" | ||
description = "A proc-macro crate for StructPacker" | ||
version = "0.1.0" | ||
documentation = "" | ||
|
||
edition.workspace = true | ||
rust-version.workspace = true | ||
authors.workspace = true | ||
license.workspace = true | ||
homepage.workspace = true | ||
repository.workspace = true | ||
keywords.workspace = true | ||
categories.workspace = true | ||
|
||
[lib] | ||
path = "lib.rs" | ||
proc-macro = true | ||
|
||
[dependencies] | ||
syn = "1.0" | ||
quote = "1.0" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,7 @@ | ||
# Derive Macros for antelope-rs crate | ||
|
||
## Description | ||
Derive macros require being in their own crate. This create is required for the `StructPacker` derive macro. | ||
|
||
## Documentation | ||
https://docs.rs/antelope-client-macros |
File renamed without changes.