Commit Graph

263 Commits

Author SHA1 Message Date
openharmony_ci 1d3914c597 !2 CI OAT 告警清零与README.OpenSource 中License信息整改
Merge pull request !2 from peizhe/master
2023-05-04 06:58:52 +00:00
peizhe 7d09573004 CI OAT 告警清零与README.OpenSource 中License信息整改
Signed-off-by: peizhe <zhaipeizhe@huawei.com>
2023-05-04 11:15:19 +08:00
openharmony_ci 12ee8cf247 !1 [tinyvec]Add GN Build Files and Custom Modifications to Rust Third-party Libraries
Merge pull request !1 from peizhe/master
2023-04-19 01:28:00 +00:00
peizhe e9ce32abb3 Add GN Build Files and Custom Modifications
Signed-off-by: peizhe <472708703@qq.com>
2023-04-18 18:26:25 +08:00
Lokathor 1127675cc2 (cargo-release) version 1.6.0 github.com/Lokathor/tinyvec/refs/tags/v1.6.0 2022-04-25 10:34:31 -06:00
Lokathor fdf3893b2b Update CHANGELOG.md 2022-04-25 09:36:13 -06:00
Lokathor 1f7b1e0c01 std feature now automatically activates the alloc feature
Closes https://github.com/Lokathor/tinyvec/issues/159
2022-04-25 09:35:49 -06:00
ajtribick 0f5ddfdb48 Error implementation for TryFromSliceError (#160)
* Fix spelling of 'length'

* Add Error implementation to TryFromSliceError
2022-04-23 12:18:14 -06:00
i509VCB 0e8f29219a add try_ functions for fallible heap growth (#158)
* add try_ functions for fallible heap growth

* tests for try_ functions
2022-04-20 12:43:34 -06:00
Lokathor a7b5ce9bb3 (cargo-release) version 1.5.1 2021-11-09 12:27:53 -07:00
Lokathor 9aefb53732 changelog. 2021-11-09 12:27:30 -07:00
Mads Marquart a5b61f9988 Fix building on Rust 1.34 with alloc feature enabled (#154)
* CI: Build Rust 1.34 with features

* Fix building on Rust 1.34 with alloc feature enabled

* CI: Fix building with features
2021-11-09 12:25:23 -07:00
Ben Kimock 5ce5c7d5ef Benchmarks comparing TinyVec to SmallVec (#150)
* Add benchmarks against SmallVec

* Move the criterion real_blackbox feature behind a feature of our own
2021-09-26 13:03:06 -06:00
Lokathor 5b99b12206 (cargo-release) start next development iteration 1.5.1-alpha.0 2021-09-24 18:59:43 -06:00
Lokathor 745ed94913 (cargo-release) version 1.5.0 2021-09-24 18:58:43 -06:00
Lokathor 469282a58c update changelog. 2021-09-24 18:58:24 -06:00
Lokathor 9cf334daf0 add the doc attribute. 2021-09-24 18:51:21 -06:00
Lokathor 63d82bd6a1 enable std feature in docs and playground. 2021-09-24 18:39:10 -06:00
Eric Ridge dca393f1d7 Issue #151: impl std::io::Write for u8-based TinyVecs (#152)
* impl std::io::Write for u8-based TinyVec

* undo bad formatting

* fix formatting
2021-09-24 11:58:46 -06:00
Lokathor fa49aa60ca (cargo-release) start next development iteration 1.4.1-alpha.0 2021-09-11 19:06:43 -06:00
Lokathor 6775413a5c (cargo-release) version 1.4.0 2021-09-11 19:06:05 -06:00
Lokathor 4eff8fc1f8 1.55 imples 1.40 2021-09-11 19:05:15 -06:00
Lokathor fbe6de19cb update changelog. 2021-09-11 18:58:13 -06:00
Ben Kimock ec2dae2286 Rename nightly_const_generics to rustc_1_55 and remove feature gate (#149) 2021-09-11 18:54:59 -06:00
Lokathor 734bc2ee01 (cargo-release) start next development iteration 1.3.2-alpha.0 2021-07-21 18:15:13 -06:00
Lokathor 5aeb8242f7 (cargo-release) version 1.3.1 2021-07-21 18:14:40 -06:00
Lokathor c08544366e Update CHANGELOG.md 2021-07-21 18:14:16 -06:00
Lokathor 71bc7f110b improve clone impl as per https://github.com/Lokathor/tinyvec/issues/143 (#144)
* improve clone impl as per https://github.com/Lokathor/tinyvec/issues/143

* per https://github.com/Lokathor/tinyvec/pull/144#discussion_r669769122

* rustfmt.

* formatting

* whoops haha that's a little tricky to get the types to line up

we don't have deref for the A so we have to keep using as_slice_mut and such
2021-07-21 18:11:46 -06:00
Lokathor ea2e60192c (cargo-release) start next development iteration 1.3.1-alpha.0 2021-07-20 07:41:15 -06:00
Lokathor 8520ce6622 (cargo-release) version 1.3.0 2021-07-20 07:40:50 -06:00
Andrew Jeffery a7e2a5a23a Add changelog entries for 1.3.0 (#148) 2021-07-20 07:36:50 -06:00
Andrew Jeffery 07aa65ea7e Add arbitrary implementations for TinyVec and ArrayVec (#146) 2021-07-13 06:52:19 -06:00
Ole Bertram 11b308804e Implement DoubleEndedIterator for TinyVecIterator (#145) 2021-07-13 06:49:17 -06:00
Lokathor a2933e4c6d (cargo-release) start next development iteration 1.2.1-alpha.0 2021-04-04 10:37:03 -06:00
Lokathor 47c684bef7 (cargo-release) version 1.2.0 2021-04-04 10:36:21 -06:00
Lokathor ee6dac1c04 changelog. 2021-04-04 10:36:13 -06:00
Cryptjar 36ff7fdf6b Add a from_array_empty constructor which is a const fn. (#141)
Also lifts the `A: Array` constraint on ArrayVec as it was not used yet
and would otherwise conflict with the const fn, which currently (Rust 1.51)
may not have any trait constraints.

Since this commit only adds a new function and lifts a constraint, this
should be perfectly backwards compatible.
2021-04-04 09:13:15 -06:00
Lokathor e07fab3335 use alternate printing when requested. (#139) 2021-04-01 19:47:38 -06:00
Cryptjar d4f5d8effc Replace LICENSE-APACHE.md with official text (#140)
Just copy & past the official text from http://www.apache.org/licenses/LICENSE-2.0.txt
Well technically, it's not markdown, but it doesn't look that bad either.
Fixes #136
2021-04-01 17:16:10 -06:00
Soveu d508e914f7 TinyVec::fmt - fix pretty printing (#138)
* TinyVec::fmt - fix pretty printing

* ArrayVec::fmt - fix pretty printing
2021-03-24 11:55:02 -06:00
Michael Morgan af1817d770 Add TryFrom<&'_ [A::Item]> for ArrayVec<A> (#134) 2021-03-01 20:02:24 -07:00
Lokathor 00a0034df8 (cargo-release) start next development iteration 1.1.2-alpha.0 2021-01-25 18:27:23 -07:00
Lokathor 17f10ea178 (cargo-release) version 1.1.1 2021-01-25 18:27:05 -07:00
Lokathor c0d9137827 update changelog. 2021-01-25 17:35:03 -07:00
Ben Kimock 172d8888eb swap instead of rotate_right, explain in comment (#129) 2021-01-18 16:03:40 -07:00
Ben Kimock b14c02e71d optimize From<&[T]> (#132) 2021-01-18 15:19:28 -07:00
Ben Kimock e4ca2b2482 optimize ArrayVec::fill (#131) 2021-01-18 15:17:52 -07:00
Ben Kimock 27bfc2eecb Swap each element instead of calling rotate_left (#128) 2021-01-13 19:40:55 -07:00
Ben Kimock 06472075cf Outline the drain to heap logic in TinyVec::push (#127)
* Outline the drain to heap logic in TinyVec::push

* Use #[cold] and explain the outlining in a comment
2021-01-13 17:51:07 -07:00
Lokathor a73e5cac0f (cargo-release) start next development iteration 1.1.1-alpha.0 2020-11-19 17:00:29 -07:00