-
Notifications
You must be signed in to change notification settings - Fork 61
add more formatting traits #56
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
26 commits
Select commit
Hold shift + click to select a range
f8023db
WIP: add more formatting traits
maxbla b1a95e7
make negative check more sane
maxbla e96d0ed
revert to old implementation of Display
maxbla c1e3ab3
switch from alloc::format to std::alloc
maxbla a3c45e3
fix format! macro in 1.26.0 and older rust
maxbla ebe4b2e
remove negative signs from some formatting traits
maxbla 272053f
add test cases
maxbla 49b41c2
remove extra trait bounds on Display traits
maxbla b4b1c82
switch formatting impls to using macros
maxbla e582dfe
improve Exp formatting traits' tests
maxbla f7aea8f
remove dependency on std for Exp formatting traits
maxbla c7ea97a
appease rustfmt
maxbla a661879
attempt to support no_std
maxbla aa1c26b
Add breaking change to Display
maxbla bb3a544
fix imports in rust 1.31
maxbla 570e401
fix typo
maxbla 37804b4
maybe fix imports
maxbla ac41f59
improve no_std display tests
maxbla c847d58
properly handle formatter.sign_plus()
maxbla c67e0ae
add parsing rust version from rustc to ci script
maxbla 09e859a
fix shellcheck suggestions on ci script
maxbla e985a0f
reduce code duplication in formatting code
maxbla 92064f3
fix displaying negatives with padding
maxbla 92f8027
Improve testing exponential formatting
maxbla e0e3cb9
format build.rs
maxbla 05213bd
hasten builds by only probing isize *Exp formatting
maxbla 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,8 @@ | ||
fn main() { | ||
let ac = autocfg::new(); | ||
if ac.probe_expression("format!(\"{:e}\", 0_isize)") { | ||
println!("cargo:rustc-cfg=has_int_exp_fmt"); | ||
} | ||
|
||
autocfg::rerun_path(file!()); | ||
} |
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
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.
Uh oh!
There was an error while loading. Please reload this page.