-
Notifications
You must be signed in to change notification settings - Fork 2
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
9 changed files
with
268 additions
and
161 deletions.
There are no files selected for viewing
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
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,64 +1,26 @@ | ||
[package] | ||
name = "tagged-base64" | ||
version = "0.3.4" | ||
[workspace.package] | ||
version = "0.4.0" | ||
authors = ["Espresso Systems <[email protected]>"] | ||
edition = "2021" | ||
description = "User-oriented format for binary data. Tagged Base64 is intended to be used in user interfaces including URLs and text to be copied and pasted without the need for additional encoding, such as quoting or escape sequences." | ||
repository = "https://github.com/EspressoSystems/tagged-base64" | ||
license = "MIT" | ||
|
||
[lib] | ||
crate-type = ["cdylib", "rlib"] | ||
|
||
[[bin]] | ||
name = "tagged-base64" | ||
required-features = ["build-cli"] | ||
|
||
[features] | ||
default = ["ark-serialize", "serde", "wasm-bindgen"] | ||
ark-serialize = ["dep:ark-serialize"] | ||
serde = ["dep:serde", "tagged-base64-macros/serde"] | ||
wasm-bindgen = ["dep:wasm-bindgen"] | ||
wasm-debug = ["dep:console_error_panic_hook"] | ||
build-cli = ["dep:clap"] | ||
|
||
[dependencies] | ||
ark-serialize = { version = "0.4.0", optional = true, default-features = false, features = ["derive"] } | ||
ark-std = { version = "0.4.0", default-features = false } | ||
[workspace] | ||
resolver = "2" | ||
members = [ | ||
"tagged-base64", | ||
"tagged-base64-macros", | ||
] | ||
|
||
[workspace.dependencies] | ||
ark-bls12-381 = "0.4" | ||
ark-serialize = { version = "0.4", default-features = false } | ||
ark-std = { version = "0.4", default-features = false } | ||
base64 = "0.22" | ||
crc-any = { version = "2.4.1", default-features = false } | ||
serde = { version = "1.0", optional = true, features = ["derive"] } | ||
snafu = { version = "0.8" } | ||
tagged-base64-macros = { version = "0.3.3", path = "macros", default-features = false } | ||
|
||
# Command line argument processing | ||
clap = { version = "4.0", optional = true, features = ["derive"] } | ||
|
||
[target.'cfg(target_arch = "wasm32")'.dependencies] | ||
wasm-bindgen = { version = "0.2.78", features = ["serde-serialize"], optional = true } | ||
|
||
# required for debugging from wasm | ||
web-sys = { version = "0.3.49", optional = true, features = ["console", "Headers", "RequestInit", "RequestMode", "Request", "Response", "Window"] } | ||
|
||
# The `console_error_panic_hook` crate provides better debugging of panics by | ||
# logging them with `console.error`. This is great for development, but requires | ||
# all the `std::fmt` and `std::panicking` infrastructure, so isn't great for | ||
# code size when deploying. | ||
console_error_panic_hook = { version = "0.1.7", optional = true } | ||
|
||
[dev-dependencies] | ||
bincode = "1.3" | ||
getrandom = { version = "0.2", features = ["js"] } | ||
quickcheck = "1.0" | ||
quickcheck_macros = "1.0" | ||
serde_json = "1.0" | ||
wasm-bindgen-test = { version = "0.3.28" } | ||
rand_chacha = "0.3" | ||
serde = "1.0" | ||
snafu = "0.8" | ||
|
||
[profile.release] | ||
# Tell `rustc` to optimize for small code size. | ||
opt-level = "s" | ||
debug = true | ||
|
||
# https://github.com/rustwasm/wasm-bindgen/issues/2279 | ||
[package.metadata.wasm-pack.profile.release] | ||
wasm-opt = ["-Os", "--enable-mutable-globals"] |
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,11 +1,10 @@ | ||
[package] | ||
name = "tagged-base64-macros" | ||
description = "Procedural macros associated with tagged-base64" | ||
version = "0.3.3" | ||
authors = ["Espresso Systems <[email protected]>"] | ||
edition = "2021" | ||
repository = "https://github.com/EspressoSystems/tagged-base64" | ||
license = "MIT" | ||
version = { workspace = true } | ||
authors = { workspace = true } | ||
edition = { workspace = true } | ||
license = { workspace = true } | ||
|
||
[lib] | ||
proc-macro = true | ||
|
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
Oops, something went wrong.