forked from cryptape/ckb-auth
-
Notifications
You must be signed in to change notification settings - Fork 12
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
Fix bug: When using dynamic linking, auth will be loaded repeatedly. #27
Merged
Merged
Changes from all commits
Commits
Show all changes
27 commits
Select commit
Hold shift + click to select a range
d6656ec
Fix bug: When using dynamic linking, auth will be loaded repeatedly.
joii2020 8f5ee08
Update Readme
joii2020 2c63cf0
test support auth-rust-lock
joii2020 c571024
ckb-auth-rs dl context in static memory
joii2020 b5083c6
Fix bug in auht-rust-lock
joii2020 d2b6b19
Add Cargo.lock
joii2020 e4204ea
Support feature enable-dynamic-library
joii2020 298815c
Add testcase about ckb-auth-rs features
joii2020 8f65686
Execute ckb-auth twice consecutively in auth-rust-lock
joii2020 a826903
Fix CI: rust-demo-tests build before testing
joii2020 f7391c1
ckb-auth-rs: Defaule enable dynamic-library
joii2020 d5aa298
Replace DynamicLinking to DynamicLibrary in ckb-auth-rs
joii2020 8b69cc2
Fix CI: aut-rust-demo add no default features
joii2020 0cfc9c4
Add more comments
XuJiandong 8d5bc21
Merge pull request #3 from XuJiandong/add-comments
joii2020 bd31ce4
C ckb_auht.h support multi dynamic lib
joii2020 2d0847f
Some numbers are replaced with macros
joii2020 bc07adb
ckb_auth.h: EntryCategoryDynamicLinking replace to EntryCategoryDynam…
joii2020 71ea418
Init dynamic library global cache to zero
joii2020 8ec271c
Add comment
joii2020 14531e0
Fix CI: warning with docker
joii2020 bfc2db8
Update Cargo.lock
joii2020 e9b77fd
Add macro CKB_AUTH_DISABLE_DYNAMIC_LIB.
joii2020 d493e86
Add testcase: When disable dynamic lib
joii2020 9a2f645
Update auth.md, about dynamic library
joii2020 451d581
Fix CI: auth-c-lock add auth_c_lock_disable_dl
joii2020 04a659e
rust dynamic lib cache remains aligned
joii2020 File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -6,11 +6,18 @@ edition = "2021" | |
# See more keys and their definitions at https://doc.rust-lang.org/cargo/reference/manifest.html | ||
|
||
[features] | ||
default = [] | ||
default = ["dynamic-library-memory-200"] | ||
ckb2023 = ["ckb-std/ckb2023"] | ||
|
||
enable-dynamic-library = ["lazy_static"] | ||
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. use this feature as default |
||
dynamic-library-memory-200 = ["enable-dynamic-library"] | ||
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. use this feature as default. |
||
# enable these features when memory is not enough | ||
dynamic-library-memory-400 = ["enable-dynamic-library"] | ||
dynamic-library-memory-600 = ["enable-dynamic-library"] | ||
|
||
[dependencies] | ||
ckb-std = "0.14.3" | ||
lazy_static = { version = "1.4.0", optional = true, features = ["spin_no_std"] } | ||
|
||
[target.'cfg(target_arch = "riscv64")'.dependencies] | ||
hex = { version = "0.4.3", default-features = false, features = ["alloc"]} | ||
|
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.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
double check it.