-
Notifications
You must be signed in to change notification settings - Fork 19
feat(library-config)!: make libdd-library-config no_std compatible #1770
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
Open
pawelchcki
wants to merge
54
commits into
main
Choose a base branch
from
pawel/no-std-library-config
base: main
Could not load branches
Branch not found: {{ refName }}
Loading
Could not load tags
Nothing to show
Loading
Are you sure you want to change the base?
Some commits from the old base branch may be removed from the timeline,
and old review comments may become outdated.
Open
Changes from all commits
Commits
Show all changes
54 commits
Select commit
Hold shift + click to select a range
2e76031
feat(library-config): make libdd-library-config and libdd-library-con…
pawelchcki f2492fd
feat(library-config-ffi): add global allocator for no_std builds
pawelchcki 686ba3d
feat(library-config-ffi): enable FFI configurator functions in no_std…
pawelchcki 859cd05
feat(library-config-ffi): make LibraryConfig available in no_std builds
pawelchcki 8cc7d0c
refactor(library-config-ffi): use alloc::ffi::CString directly in no_std
pawelchcki 2ab5c3e
fix(library-config-ffi): exclude common.h types from cbindgen output
pawelchcki 3eb69ce
fix: address CI failures (rustfmt, cbindgen excludes, LICENSE-3rdparty)
pawelchcki db1be94
refactor(common-ffi): make slice and cstr modules available in no_std…
pawelchcki a6e4615
refactor(library-config): replace HashMap with BTreeMap, drop hashbro…
pawelchcki 16bf3ed
refactor(library-config): replace serde_yaml with yaml-peg for no_std…
pawelchcki 641fc8e
chore: update Cargo.lock for yaml-peg dependency
pawelchcki 3370b92
refactor(common-ffi): use imports instead of fully qualified alloc:: …
pawelchcki 1ca7bf2
refactor(common-ffi): consolidate std re-exports into a single cfg block
pawelchcki a7fbecd
refactor(common-ffi): consolidate cfg-gated imports in slice.rs
pawelchcki e77ef42
fix(library-config-ffi): gate #![no_std] on no_std_entry feature for …
pawelchcki dc6bf5c
chore: regenerate LICENSE-3rdparty.yml
pawelchcki 3ec10c9
fix(common-ffi): make vec module available in no_std, propagate std f…
pawelchcki e5ac4c4
feat(library-config): make get_config_from_bytes available in no_std
pawelchcki 3243266
style(common-ffi): fix rustfmt for single-line use block
pawelchcki 6723b65
fix(library-config): replace yaml_peg with yaml_serde, address review
pawelchcki 8a8e1d3
feat(library-config-ffi): add no_std FFI entry point, address review …
pawelchcki 5f89b6c
Merge remote-tracking branch 'origin/main' into pawel/no-std-library-…
pawelchcki 7e50e99
style(library-config): fix rustfmt blank line between doc comment and…
pawelchcki da96080
fix: use main's Cargo.lock with minimal dep additions
pawelchcki b6c41a1
chore: regenerate LICENSE-3rdparty.csv
pawelchcki 464fcec
Merge branch 'main' into pawel/no-std-library-config
pawelchcki b757c8c
fix(library-config-ffi): wrap get_from_bytes in catch_unwind for pani…
pawelchcki 6263db2
refactor(library-config-ffi): generalize catch_panic macro for multip…
pawelchcki a045a89
fix(library-config-ffi): move panic prefix into catch_panic macro to …
pawelchcki ef56bfe
feat(library-config): add ConfigRead trait for virtual filesystem sup…
pawelchcki 07362bd
fix(library-config): address PR review findings
pawelchcki bc5fdf6
refactor(library-config): extract ConfigRead to config_read.rs, remov…
pawelchcki f03aa7f
Merge remote-tracking branch 'origin/main' into pawel/no-std-library-…
pawelchcki eca2b55
style(library-config): fix rustfmt and clippy findings
pawelchcki c1e7872
style(library-config): fix nightly rustfmt doc comment wrapping
pawelchcki 4b014b6
Merge origin/main and remove ddog_library_configurator_get_from_bytes
pawelchcki 12c21e8
fix: remove extra blank line causing rustfmt failure
Copilot 8f9dd03
refactor: simplify no_std library-config changes
pawelchcki 71b0ea8
refactor: hoist config_id clone out of Phase 2 loop
pawelchcki 1e96bca
Merge remote-tracking branch 'origin/main' into pawel/no-std-library-…
pawelchcki b5eb35d
refactor: minimize catch_panic! changes to std gates only
pawelchcki 9383bef
Merge origin/main into pawel/no-std-library-config
Copilot 81b8547
Update libdd-library-config/src/lib.rs
pawelchcki 12431c9
refactor(library-config-ffi): address review feedback
pawelchcki 75322b7
Merge branch 'main' into pawel/no-std-library-config
pawelchcki 415115e
refactor(library-config-ffi): drop redundant comments and dedupe path…
pawelchcki e95a2f7
fix(library-config): enforce file-size limit on 32-bit and across rea…
pawelchcki 5d748f7
refactor(libdd-common-ffi): move std gates from mod decls to module f…
pawelchcki 2976888
refactor: hoist remaining std cfg gates into target module files
pawelchcki 7c4afeb
refactor(libdd-common-ffi): single-source SliceConversionError messages
pawelchcki 8279e8d
feat(libdd-common-ffi): add From<&CStr> for Error
pawelchcki 93b754b
Revert "feat(libdd-common-ffi): add From<&CStr> for Error"
pawelchcki e4865d4
chore: drop self-evident comment, name the no_std CI profile
pawelchcki 313092d
Merge branch 'main' into pawel/no-std-library-config
pawelchcki 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 hidden or 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 hidden or 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 hidden or 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 hidden or 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 hidden or 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 hidden or 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 hidden or 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 hidden or 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 hidden or 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 hidden or 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 hidden or 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 hidden or 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.
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.
I think we currently don't have a good way to test sets of features (ideally we would use
cargo hackor something like that). But just to double check if it's the right place/the right move to add a bespoke step for one specific crate and features combination, or if there's a more principled way to do that @ekump ?