-
Couldn't load subscription status.
- Fork 140
Feat: borsh, serde, and address no_std #355
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Changes from all commits
4e0cdf0
7d9241a
40e7fde
b9fca36
a6b91d7
ef85ec8
84926e3
4696cdc
e337c6f
cab01f0
6d957c3
38f4819
46d5b6d
70da8b3
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -17,7 +17,7 @@ rustdoc-args = ["--cfg=docsrs"] | |
|
|
||
| [features] | ||
| atomic = ["dep:solana-atomic-u64"] | ||
| borsh = ["dep:borsh", "std"] | ||
| borsh = ["dep:borsh", "alloc"] | ||
| bytemuck = ["dep:bytemuck", "dep:bytemuck_derive"] | ||
| curve25519 = ["dep:curve25519-dalek", "error", "sha2"] | ||
| decode = ["dep:five8", "dep:five8_const", "error"] | ||
|
|
@@ -33,7 +33,8 @@ rand = ["dep:rand", "atomic", "std"] | |
| sanitize = ["dep:solana-sanitize"] | ||
| serde = ["dep:serde", "dep:serde_derive"] | ||
| sha2 = ["dep:solana-sha256-hasher", "error"] | ||
| std = ["decode"] | ||
| std = ["decode", "borsh?/std", "serde?/std", "alloc"] | ||
|
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. nit: Can you add a comment above this saying to remove the enabling of There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. I'm not sure we'd want this. I think std should probably enable alloc as well There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. We're going to break up a few of these features, but it's true that it might be odd to need to enable both separately. What do you think @febo ? There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Agree, I think we should enable |
||
| alloc = [] | ||
| syscalls = ["dep:solana-define-syscall", "error"] | ||
|
|
||
| [dependencies] | ||
|
|
@@ -72,7 +73,7 @@ solana-address = { path = ".", features = [ | |
| "error", | ||
| "sanitize", | ||
| "std", | ||
| "syscalls" | ||
| "syscalls", | ||
| ] } | ||
| solana-cpi = { path = "../cpi" } | ||
| solana-example-mocks = { path = "../example-mocks" } | ||
|
|
||
Uh oh!
There was an error while loading. Please reload this page.