forked from solana-labs/solana
-
Notifications
You must be signed in to change notification settings - Fork 291
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
1 parent
f76c121
commit c2dbbd1
Showing
8 changed files
with
147 additions
and
44 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
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 |
---|---|---|
@@ -0,0 +1,53 @@ | ||
[package] | ||
name = "solana-blake3-hasher" | ||
description = "Solana BLAKE3 hashing" | ||
documentation = "https://docs.rs/solana-blake3-hasher" | ||
version = { workspace = true } | ||
authors = { workspace = true } | ||
repository = { workspace = true } | ||
homepage = { workspace = true } | ||
license = { workspace = true } | ||
edition = { workspace = true } | ||
|
||
[package.metadata.docs.rs] | ||
targets = ["x86_64-unknown-linux-gnu"] | ||
all-features = true | ||
rustdoc-args = ["--cfg=docsrs"] | ||
|
||
[dependencies] | ||
borsh = { workspace = true, optional = true } | ||
serde = { workspace = true, optional = true } | ||
serde_derive = { workspace = true, optional = true } | ||
solana-frozen-abi = { workspace = true, optional = true, features = [ | ||
"frozen-abi", | ||
] } | ||
solana-frozen-abi-macro = { workspace = true, optional = true, features = [ | ||
"frozen-abi", | ||
] } | ||
solana-hash = { workspace = true } | ||
solana-sanitize = { workspace = true } | ||
|
||
[target.'cfg(not(target_os = "solana"))'.dependencies] | ||
blake3 = { workspace = true } | ||
|
||
[target.'cfg(target_os = "solana")'.dependencies] | ||
# blake3 should be removed in the next breaking release, | ||
# as there's no reason to use the crate instead of the syscall | ||
# onchain | ||
blake3 = { workspace = true, optional = true } | ||
solana-define-syscall = { workspace = true } | ||
|
||
[dev-dependencies] | ||
bs58 = { workspace = true, features = ["std"] } | ||
solana-blake3-hasher = { path = ".", features = ["dev-context-only-utils"] } | ||
|
||
[features] | ||
borsh = ["dep:borsh", "std"] | ||
dev-context-only-utils = ["std"] | ||
frozen-abi = ["dep:solana-frozen-abi", "dep:solana-frozen-abi-macro", "std"] | ||
serde = ["dep:serde", "dep:serde_derive"] | ||
blake3 = ["dep:blake3"] | ||
std = ["solana-hash/std"] | ||
|
||
[lints] | ||
workspace = 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
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
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.