-
Notifications
You must be signed in to change notification settings - Fork 1.4k
no_std for wtf8, sre_engine, compiler-core, literal #7051
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
Merged
Merged
Changes from all commits
Commits
Show all changes
2 commits
Select commit
Hold shift + click to select a range
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
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
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -1,3 +1,7 @@ | ||
| #![no_std] | ||
|
|
||
| extern crate alloc; | ||
|
|
||
| pub mod char; | ||
| pub mod complex; | ||
| pub mod escape; | ||
|
|
||
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
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -1,3 +1,7 @@ | ||
| #![no_std] | ||
|
|
||
| extern crate alloc; | ||
|
|
||
| pub mod constants; | ||
| pub mod engine; | ||
| pub mod string; | ||
|
|
||
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.
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.
🧩 Analysis chain
🏁 Script executed:
fd 'Cargo.toml' crates/wtf8 --exec cat {}Repository: RustPython/RustPython
Length of output: 458
🏁 Script executed:
Repository: RustPython/RustPython
Length of output: 2625
🏁 Script executed:
# Check the actual lib.rs to see import usage and configuration head -100 crates/wtf8/src/lib.rsRepository: RustPython/RustPython
Length of output: 3814
🏁 Script executed:
Repository: RustPython/RustPython
Length of output: 211
🏁 Script executed:
Repository: RustPython/RustPython
Length of output: 364
🏁 Script executed:
Repository: RustPython/RustPython
Length of output: 47
🏁 Script executed:
Repository: RustPython/RustPython
Length of output: 87
🏁 Script executed:
Repository: RustPython/RustPython
Length of output: 122
🏁 Script executed:
Repository: RustPython/RustPython
Length of output: 1737
🏁 Script executed:
Repository: RustPython/RustPython
Length of output: 6676
🏁 Script executed:
Repository: RustPython/RustPython
Length of output: 343
🏁 Script executed:
Repository: RustPython/RustPython
Length of output: 1327
🏁 Script executed:
Repository: RustPython/RustPython
Length of output: 576
🏁 Script executed:
Repository: RustPython/RustPython
Length of output: 47
🏁 Script executed:
Repository: RustPython/RustPython
Length of output: 47
🌐 Web query:
itertools 0.14.0 no_std alloc feature requirements💡 Result:
For
itertools = 0.14.0,stdis enabled by default (default = ["use_std"]). The crate’s features are:use_std(which impliesuse_alloc) anduse_allocalone. [1][2]no_std + alloc(nostd)Use
default-features = falseand enableuse_alloc:This avoids
use_std(and thus avoids enablingeither/use_std) while allowing the parts ofitertoolsthat rely onalloc. [1][2]no_stdwithoutalloc(core-only)Disable default features and don’t enable
use_alloc:(You can only use the subset of
itertoolsthat doesn’t require allocation.) [1][2]Note: In a
#![no_std]binary,alloc-using code also requires that your target provides thealloccrate and that you have a global allocator available at link/runtime. [1]Sources: [1]
Cargo.tomlforitertools 0.14.0on docs.rs, [2] docs.rs feature flags page.itertools requires explicit no_std configuration — add
default-features = false, features = ["use_alloc"]to the workspace dependency.The crate uses
#![no_std]withitertools::Eitheranditertools::Itertools, butitertools 0.14.0defaults touse_std. Update the workspace dependency inCargo.toml:The other dependencies (
ascii,bstr,memchr) supportno_stdwith their default configurations.🤖 Prompt for AI Agents