Commit Graph

252 Commits

Author SHA1 Message Date
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
Lokathor a3f12f2771 (cargo-release) version 1.1.0 2020-11-19 16:59:58 -07:00
Lokathor 83181d292d additional doc attributes. 2020-10-14 13:11:32 -06:00
Lokathor 0b80f41c2a (cargo-release) version 1.1.0-alpha.1 2020-10-14 12:48:35 -06:00
Lokathor 4850f3ecdc version bump 2020-10-14 12:46:24 -06:00
Lokathor d1a9fdb26f update changelog 2020-10-13 12:20:31 -06:00
Lokathor b32387ff49 make docs even more plain and simple. 2020-10-13 12:17:16 -06:00
Lokathor 2a125c2173 rustfmt 2020-10-13 12:16:40 -06:00
Johnny ee3e73ccc6 Add into_inner method (#124)
* Add into_inner method

* Whoops, forgot the function
2020-10-13 12:07:20 -06:00
Lokathor 1e5c52fab7 make the user credit a link to their profile 2020-10-12 00:37:23 -06:00
Lokathor 87bf22c173 update changelog 2020-10-12 00:33:54 -06:00
SlightlyOutOfPhase 59a2b4c903 Implement [value; N] syntax support for array_vec! (#118)
* Implement `[value; N]` syntax for `array_vec!`

Also implement the `($array_type:ty)` form by just calling `default()` immediately, which makes more sense.

* Add tests for `[value; N]` macro form

* Implement `[value; N]` syntax for `tiny_vec!`

Also make the same improvement to the `($array_type:ty)` macro variant that I did for `array_vec!`.

* Add tests for `[value; N]` macro form
2020-10-11 18:42:51 -06:00