1029 Commits

Author SHA1 Message Date
David Tolnay
214c9ea201
Remove i32 num impls 2020-06-07 01:20:38 -07:00
David Tolnay
2357d792ce
Remove unused associated items of Mantissa and Float 2020-06-07 01:09:41 -07:00
David Tolnay
758d6789bd
Remove unused supertraits in lexical num library 2020-06-07 01:03:08 -07:00
David Tolnay
51392b8bf5
Remove test of removed num types 2020-06-07 00:57:01 -07:00
David Tolnay
6e00729f1f
Fix target arch detection for limb width
cfg(target_arch) refers to the target of the current code being
compiled. In the case of the build script, that's the host architecture.
Cargo provides a separate env variable to build scripts to determine the
target arch of the library as opposed to the target arch of the build
script.
2020-06-07 00:44:47 -07:00
David Tolnay
6f89d8f4bb
Tone down some unused num impls 2020-06-07 00:34:25 -07:00
David Tolnay
0b5fe841a7
Format macro_rules macro from lexical 2020-06-07 00:30:09 -07:00
David Tolnay
db60f98bc3
Touch up new float roundtrip test from PR 671 2020-06-07 00:21:30 -07:00
David Tolnay
9091105d98
Remove gratuitous inline from lexical test 2020-06-07 00:10:44 -07:00
David Tolnay
7d084b2c48
Remove dead lexical test code involving radix 2020-06-07 00:10:43 -07:00
David Tolnay
664cd2d253
Move lexical unit tests to tests directory 2020-06-07 00:10:43 -07:00
David Tolnay
8ab4d56f08
Remove unneeded methods from Hi64 2020-06-07 00:10:42 -07:00
David Tolnay
8d8856dfae
Remove ReverseView and Slice abstractions 2020-06-07 00:10:41 -07:00
David Tolnay
b90e1314a6
Eliminate RSliceIndex trait 2020-06-07 00:10:41 -07:00
David Tolnay
9a1e69d86f
Remove dead RSliceIndex trait methods from lexical 2020-06-07 00:10:40 -07:00
David Tolnay
b364a2c14d
Remove extremely sketchy and unnecessary code from lexical
It looks like a `reserve` went missing in Alexhuszagh's conversion from
lexical to minimal-lexical. Without it, the first ptr::copy in
insert_many blindly writes elements past the end of the vector's
capacity.
2020-06-07 00:10:40 -07:00
David Tolnay
5b6215bbee
Remove iterator overgeneralization from lexical 2020-06-07 00:10:39 -07:00
David Tolnay
a65034cfef
Replace some suspicious extend calls 2020-06-07 00:10:39 -07:00
David Tolnay
985fcde844
Remove arrayvec-oriented abstractions 2020-06-07 00:10:38 -07:00
David Tolnay
286e047aac
Resolve clippy lints in lexical 2020-06-07 00:10:37 -07:00
David Tolnay
0e37ea0af9
Inline type of LimbVecType 2020-06-07 00:10:37 -07:00
David Tolnay
fefdba7e94
Remove use of inline(always) 2020-06-07 00:10:36 -07:00
David Tolnay
9ce2bb11d7
Remove no_alloc codepath and arrayvec 2020-06-07 00:10:36 -07:00
David Tolnay
0b4c91fcf8
Unify lexical and top level lib modules 2020-06-07 00:10:35 -07:00
David Tolnay
c1971ac52d
Update de.rs use of minimal_lexical 2020-06-07 00:10:34 -07:00
David Tolnay
8262a63e8e
Update imports in lexical module 2020-06-07 00:10:34 -07:00
David Tolnay
f13f24048b
Format lexical module with rustfmt 2020-06-07 00:10:33 -07:00
David Tolnay
5820f6f006
Add build script to set up limb width cfg 2020-06-07 00:10:32 -07:00
David Tolnay
6e6b561dc4
Reference lexical as a module 2020-06-07 00:10:31 -07:00
David Tolnay
956847f52d
Add explanation to lexical lib 2020-06-07 00:10:30 -07:00
David Tolnay
422e1d3c6f
Import implementation of minimal-lexical
This code is gifted by Alexhuszagh and is copied here from the src directory of
fa1e491b2e
2020-06-07 00:10:03 -07:00
David Tolnay
adafa9350c
Merge pull request #671 from japaric/gh536
tweak f64 deserialization to make float roundtrips work
2020-06-07 00:08:03 -07:00
David Tolnay
39c9499688
Format with rustfmt 2020-05-19 2020-06-06 00:03:10 -07:00
David Tolnay
e943bec750
Deal with clippy lints in tests
$ cargo clippy --tests
2020-06-06 00:01:53 -07:00
David Tolnay
d6080d91f9
Add no-std verification in CI 2020-06-04 23:32:03 -07:00
David Tolnay
3d32bced00
Merge pull request #679 from serde-rs/verify
Support verifying no-std support through serde_json_test
2020-06-04 23:18:21 -07:00
David Tolnay
b886294415
Support verifying no-std support through serde_json_test
Tested with:

    cargo check \
        --manifest-path tests/crate/Cargo.toml \
        --target aarch64-unknown-none \
        --no-default-features \
        --features alloc

which fails before this commit and succeeds after.

Before this commit:

        Checking serde_json_test v0.0.0
    error[E0463]: can't find crate for `std`
      |
      = note: the `aarch64-unknown-none` target may not be installed

    error: aborting due to previous error
2020-06-04 23:12:05 -07:00
David Tolnay
28d24cc271
Resolve match_wildcard_for_single_variants pedantic lint 2020-05-29 19:00:19 -07:00
David Tolnay
c594eb00fc
Allow but ignore trailing comma in test macros 2020-05-27 15:05:59 -07:00
David Tolnay
f38e6b5c16
Be better at computer numbering 2020-05-27 15:04:43 -07:00
Alex Touchet
2cace255b2
Use https in Cargo.toml documentation link (#675) 2020-05-19 22:20:12 -07:00
David Tolnay
db95ddcd0e
Remove reference to mozilla irc 2020-05-15 23:07:04 -07:00
Jorge Aparicio
0d97e08568 if f32 was requested use 32-bit minimal-lexical
instead of using the 64-bit version and then casting down to f32
2020-05-14 12:39:44 +02:00
Jorge Aparicio
e004665bab make clippy happy 2020-05-13 18:25:05 +02:00
Jorge Aparicio
cfd0a317fd add sample roundtrip test 2020-05-13 17:59:29 +02:00
Jorge Aparicio
f7a781567c integrate minimal-lexical 2020-05-13 17:59:26 +02:00
David Tolnay
2d4cf5e594
Merge pull request #669 from dtolnay/fuzz
Add CI build to cover fuzz target
2020-05-11 11:07:50 -07:00
David Tolnay
93b4dc683e
Add CI build to cover fuzz target 2020-05-11 11:03:12 -07:00
David Tolnay
be11c917b4
Touch up PR 668 2020-05-11 10:57:13 -07:00
David Tolnay
2dc46d1d07
Merge pull request #668 from DavidKorczynski/master
Added from_slice fuzzer and OSS-integration.
2020-05-11 10:54:55 -07:00