commit_hash
stringlengths
40
40
author
stringlengths
1
57
date
timestamp[s]date
2010-07-26 04:45:09
2026-04-14 18:21:10
message
stringlengths
8
1.39M
diff
stringlengths
68
51.2k
files_changed
int64
1
136
insertions
int64
0
2.35k
deletions
int64
0
1.9k
9085961b9c3b4c1994b843c91be35aaa4ec71850
Soveu
2020-05-19T20:35:53
Operators for m256 (#65) * partially implemented operators for m256(d) * m256i bit operators * mistyped or and xor
diff --git a/src/x86_x64/avx.rs b/src/x86_x64/avx.rs index 606baa5..33795e1 100644 --- a/src/x86_x64/avx.rs +++ b/src/x86_x64/avx.rs @@ -2624,7 +2624,6 @@ pub fn set_splat_i64_m256i(i: i64) -> m256i { /// ``` #[must_use] #[inline(always)] -#[cfg(target_arch = "x86_86")] #[cfg_attr(docs_rs, doc(cfg(target_feature = ...
1
345
1
2f19b89ce42734d2e2aff0cdd9a6baa3aaa5d52a
Lokathor
2020-05-15T18:47:50
Non feature functions (#58) * _rdtsc * __rdtscp * byte swap * 64-bit swap is x86_64 only.
diff --git a/src/lib.rs b/src/lib.rs index 142cf95..c1b28e1 100644 --- a/src/lib.rs +++ b/src/lib.rs @@ -244,4 +244,60 @@ submodule!(pub x86_x64 { submodule!(pub rdrand); #[cfg(target_feature = "rdseed")] submodule!(pub rdseed); + + /// Reads the CPU's timestamp counter value. + /// + /// This is a monotoni...
1
56
0
bf0c3b3fdbd41792d8d49acdf253402498ef15e2
Soveu
2020-05-15T18:13:43
macros have now absolute use statements (#57)
diff --git a/src/x86_x64/aes.rs b/src/x86_x64/aes.rs index 3454615..ecb8cb4 100644 --- a/src/x86_x64/aes.rs +++ b/src/x86_x64/aes.rs @@ -68,9 +68,9 @@ macro_rules! aes_key_gen_assist_m128i { let a: m128i = $a; const IMM: i32 = ($imm & 0b1111_1111) as i32; #[cfg(target_arch = "x86")] - use core::arch::...
6
226
226
0a4e0ad715f13aaaceafdf0e2906c8dc1f42fdbb
Lokathor
2020-05-15T16:35:10
rename `intel` module to be more vendor agnostic.
diff --git a/src/lib.rs b/src/lib.rs index 960bdda..142cf95 100644 --- a/src/lib.rs +++ b/src/lib.rs @@ -181,7 +181,7 @@ macro_rules! submodule { } #[cfg(any(target_arch = "x86", target_arch = "x86_64"))] -submodule!(pub intel { +submodule!(pub x86_x64 { //! Types and functions for safe `x86` / `x86_64` intrinsi...
23
1
1
b020e0712af99ee1c473d4de95da7d73a8cfab92
Lokathor
2020-05-15T16:25:14
Close https://github.com/Lokathor/safe_arch/issues/48
diff --git a/src/intel/sse4_1.rs b/src/intel/sse4_1.rs index 94ae7aa..b70889a 100644 --- a/src/intel/sse4_1.rs +++ b/src/intel/sse4_1.rs @@ -556,10 +556,7 @@ macro_rules! extract_i8_as_i32_imm_m128i { /// ``` /// # use safe_arch::*; /// let a = m128::from_array([5.0, 6.0, 7.0, 8.0]); -/// assert_eq!( -/// extract_...
1
4
7
eee33d84b35bb44032c6ad73eca6f93e94cddbec
Lokathor
2020-05-15T16:25:00
we're on to 0.4
diff --git a/Cargo.toml b/Cargo.toml index 9682bf5..fa09661 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -2,7 +2,7 @@ name = "safe_arch" description = "Crate that exposes `core::arch` safely via `#[cfg()]`." repository = "https://github.com/Lokathor/safe_arch" -version = "0.3.2-alpha.0" +version = "0.4.0-alpha.0" au...
1
1
1
cceb7eea10ecf3eb71390a6b7b70044bda6ac5a0
Soveu
2020-05-15T16:21:23
256bit sse registers doc fix (#54)
diff --git a/src/intel/m256_.rs b/src/intel/m256_.rs index 876b995..67d3d59 100644 --- a/src/intel/m256_.rs +++ b/src/intel/m256_.rs @@ -6,7 +6,7 @@ use super::*; -/// The data for a 256-bit SSE register of eight `f32` lanes. +/// The data for a 256-bit AVX register of eight `f32` lanes. /// /// * This is _very ...
3
3
3
15db0c05ff94a7bcee56bb030f24ca7de06c3f46
Soveu
2020-05-15T16:20:57
shorten function names (#53)
diff --git a/src/intel/avx.rs b/src/intel/avx.rs index 61da326..a17f31e 100644 --- a/src/intel/avx.rs +++ b/src/intel/avx.rs @@ -132,12 +132,12 @@ pub fn andnot_m256(a: m256, b: m256) -> m256 { /// let a = m256d::from_array([10.0, 20.0, 30.0, 40.0]); /// let b = m256d::from_array([100.0, 200.0, 300.0, 400.0]); /// /...
4
67
67
09a772f4e33d785199c26d5c0ac93c963d0fde4e
Lokathor
2020-05-15T00:56:34
Typo fix thanks to MBones on discord.
diff --git a/src/lib.rs b/src/lib.rs index 604d424..960bdda 100644 --- a/src/lib.rs +++ b/src/lib.rs @@ -13,8 +13,8 @@ //! this crate is sadly not for you. //! //! SIMD register types are "newtype'd" so that better trait impls can be given -//! to them, but the inner value is a `pub` field so feel to just grab it ou...
1
2
2
e86b033d990f7e70ef2fdf915d939bc5afba337a
Lokathor
2020-05-15T00:22:51
when we do have features, we want docs.rs to show all of them.
diff --git a/Cargo.toml b/Cargo.toml index d4ddd4e..9682bf5 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -23,3 +23,4 @@ opt-level = 3 # This makes docs.rs build with all features enabled and # also it will indicate what fn needs what cpu feature. rustdoc-args = ["-C","target-cpu=native","--cfg","docs_rs"] +all-featur...
1
1
0
2d700038bdccac45a4e55711fc502a06651dc89b
Lokathor
2020-05-14T23:44:37
doc fixes.
diff --git a/src/intel/sse4_1.rs b/src/intel/sse4_1.rs index bef6b96..1c6b30d 100644 --- a/src/intel/sse4_1.rs +++ b/src/intel/sse4_1.rs @@ -225,7 +225,7 @@ pub fn convert_i16_lower4_to_i32_m128i(a: m128i) -> m128i { m128i(unsafe { _mm_cvtepi16_epi32(a.0) }) } -/// Convert the lower two `i16` lanes to two `i32` l...
2
6
3
082598d001daddfc82b7135789b3726527351fa4
Lokathor
2020-05-14T21:38:39
(cargo-release) start next development iteration 0.3.2-alpha.0
diff --git a/Cargo.toml b/Cargo.toml index 35ebfa8..d4ddd4e 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -2,7 +2,7 @@ name = "safe_arch" description = "Crate that exposes `core::arch` safely via `#[cfg()]`." repository = "https://github.com/Lokathor/safe_arch" -version = "0.3.1" +version = "0.3.2-alpha.0" authors = ...
1
1
1
29821344c32c8979e35637a42f98a90a50f2d653
Lokathor
2020-05-14T21:38:26
(cargo-release) version 0.3.1
diff --git a/Cargo.toml b/Cargo.toml index 17aff70..35ebfa8 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -2,7 +2,7 @@ name = "safe_arch" description = "Crate that exposes `core::arch` safely via `#[cfg()]`." repository = "https://github.com/Lokathor/safe_arch" -version = "0.3.1-alpha.0" +version = "0.3.1" authors = ...
1
1
1
29823088baa4f76c622d7dc88ff8297a31439622
Lokathor
2020-05-14T21:38:22
don't forget about AMD.
diff --git a/src/lib.rs b/src/lib.rs index aa37d16..276d04d 100644 --- a/src/lib.rs +++ b/src/lib.rs @@ -77,7 +77,7 @@ //! better name to improve the crate's consistency please file an issue.** //! //! ## Current Support -//! * Intel (`x86` / `x86_64`) +//! * Intel and AMD (`x86` / `x86_64`) //! * 128-bit: `sse`,...
1
1
1
f120d52ec65cbe09dc3736328acc9dfcabeb89de
Lokathor
2020-05-14T20:49:12
(cargo-release) start next development iteration 0.3.1-alpha.0
diff --git a/Cargo.toml b/Cargo.toml index e2650f5..17aff70 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -2,7 +2,7 @@ name = "safe_arch" description = "Crate that exposes `core::arch` safely via `#[cfg()]`." repository = "https://github.com/Lokathor/safe_arch" -version = "0.3.0" +version = "0.3.1-alpha.0" authors = ...
1
1
1
c441864d10a71a306e546f732a001f01949a1f6b
Lokathor
2020-05-14T20:48:50
(cargo-release) version 0.3.0
diff --git a/Cargo.toml b/Cargo.toml index d4fdead..e2650f5 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -2,7 +2,7 @@ name = "safe_arch" description = "Crate that exposes `core::arch` safely via `#[cfg()]`." repository = "https://github.com/Lokathor/safe_arch" -version = "0.3.0-alpha.0" +version = "0.3.0" authors = ...
1
1
1
4b9394087ff134e48a6bbec69f72e9a0840d8eaa
Lokathor
2020-05-14T20:48:43
description punctuation.
diff --git a/Cargo.toml b/Cargo.toml index 6f3c462..d4fdead 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -1,6 +1,6 @@ [package] name = "safe_arch" -description = "Crate that exposes `core::arch` safely (via `#[cfg()]`)." +description = "Crate that exposes `core::arch` safely via `#[cfg()]`." repository = "https://git...
1
1
1
06180f4229a4003ebfa713b0a53e61739b00094b
Lokathor
2020-05-10T22:04:33
sse4.2 (#22) * start 4.2 * do the non-string stuff. * begin testing so that we can doc how it works. * add the notes link. * make the tests file work on x86 * remove explicit panic from the test. * Update Cargo.toml * Closes https://github.com/Lokathor/safe_arch/issues/19 * Closes https://githu...
diff --git a/Cargo.toml b/Cargo.toml index 4ce5e5f..c78ae8f 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -2,7 +2,7 @@ name = "safe_arch" description = "Crate that exposes `core::arch` safely (via `#[cfg()]`)." repository = "https://github.com/Lokathor/safe_arch" -version = "0.2.5-alpha.0" +version = "0.3.0-alpha.0" ...
7
590
69
38ab1d6f31b249fa75652f61dc549acad36ef2fb
Lokathor
2020-05-09T17:37:18
lzcnt (#25) * lzcnt * Update lzcnt.rs
diff --git a/src/intel/lzcnt.rs b/src/intel/lzcnt.rs new file mode 100644 index 0000000..54aa379 --- /dev/null +++ b/src/intel/lzcnt.rs @@ -0,0 +1,30 @@ +#![cfg(target_feature = "lzcnt")] + +use super::*; + +/// Count the leading zeroes in a `u32`. +/// ``` +/// # use safe_arch::*; +/// assert_eq!(leading_zero_count_u3...
2
32
0
92df51d17016c623a40a0a1194a86f8de32559d0
Lokathor
2020-05-09T17:27:16
popcnt (#26) * popcnt * Update popcnt.rs
diff --git a/src/intel/popcnt.rs b/src/intel/popcnt.rs new file mode 100644 index 0000000..cd73c70 --- /dev/null +++ b/src/intel/popcnt.rs @@ -0,0 +1,32 @@ +#![cfg(target_feature = "popcnt")] + +use super::*; + +/// Count the number of bits set within an `i32` +/// ``` +/// # use safe_arch::*; +/// assert_eq!(populatio...
2
34
0
16def57719f14a5e6cf05bfa934e72f49249b32a
Lokathor
2020-05-09T17:18:17
bmi2 done (#24) * bmi2 done * Update bmi2.rs
diff --git a/src/intel/bmi2.rs b/src/intel/bmi2.rs new file mode 100644 index 0000000..c288260 --- /dev/null +++ b/src/intel/bmi2.rs @@ -0,0 +1,131 @@ +#![cfg(target_feature = "bmi2")] + +use super::*; + +/// Zero out all high bits in a `u32` starting at the index given. +/// ``` +/// # use safe_arch::*; +/// assert_eq...
2
133
0
14a2fe87b093f29aac2ea2b3c4b073e423130f0f
Lokathor
2020-05-09T17:02:18
rdrand (#27)
diff --git a/src/intel/rdrand.rs b/src/intel/rdrand.rs new file mode 100644 index 0000000..9742db7 --- /dev/null +++ b/src/intel/rdrand.rs @@ -0,0 +1,43 @@ +#![cfg(target_feature = "rdrand")] + +use super::*; + +/// Try to obtain a random `u16` from the hardware RNG. +/// ``` +/// # use safe_arch::*; +/// let mut val =...
2
45
0
810da33e0b22d0725cd52bb95f0d6c0e00e65b1d
Lokathor
2020-05-09T17:01:32
rdseed (#29)
diff --git a/src/intel/rdseed.rs b/src/intel/rdseed.rs new file mode 100644 index 0000000..24120a0 --- /dev/null +++ b/src/intel/rdseed.rs @@ -0,0 +1,43 @@ +#![cfg(target_feature = "rdseed")] + +use super::*; + +/// Try to obtain a random `u16` from the hardware RNG. +/// ``` +/// # use safe_arch::*; +/// let mut val =...
2
45
0
7de5e78e4bad4f9cfa649e5569d9defd6c08ad6b
Lokathor
2020-05-09T17:00:09
adx functions. (#30)
diff --git a/src/intel/adx.rs b/src/intel/adx.rs new file mode 100644 index 0000000..0fc9a57 --- /dev/null +++ b/src/intel/adx.rs @@ -0,0 +1,33 @@ +#![cfg(target_feature = "adx")] + +use super::*; + +/// Add two `u32` with a carry value. +/// +/// Writes the sum to the reference and returns the new carry flag. +/// ```...
2
35
0
7e4af972617dec1e63447f3521eb545f6dc58fc3
Lokathor
2020-05-09T16:59:17
carryless mul (#31)
diff --git a/src/intel/pclmulqdq.rs b/src/intel/pclmulqdq.rs new file mode 100644 index 0000000..dfd9393 --- /dev/null +++ b/src/intel/pclmulqdq.rs @@ -0,0 +1,63 @@ +#![cfg(target_feature = "pclmulqdq")] + +use super::*; + +/// Performs a "carryless" multiplication of two `i64` values. +/// +/// You specify `m128i` exp...
2
65
0
e50c81ca9add7551aaaae5f2395155ddc56cbc34
Lokathor
2020-05-09T16:58:36
aes (#32)
diff --git a/src/intel/aes.rs b/src/intel/aes.rs new file mode 100644 index 0000000..3454615 --- /dev/null +++ b/src/intel/aes.rs @@ -0,0 +1,76 @@ +#![cfg(target_feature = "aes")] + +use super::*; + +/// Perform one round of AES decryption flow on `a` using the `round_key`. +/// ``` +/// # use safe_arch::*; +/// ``` +#...
2
78
0
90fb0d62b4f4fbdc2c6f112c240dcf0feed22159
Lokathor
2020-05-09T15:41:30
use core::mem::zeroed for defaulting. (#28)
diff --git a/src/intel/m128_.rs b/src/intel/m128_.rs index da08dd5..7ac88a8 100644 --- a/src/intel/m128_.rs +++ b/src/intel/m128_.rs @@ -89,7 +89,7 @@ impl Default for m128 { #[must_use] #[inline(always)] fn default() -> Self { - zeroed_m128() + unsafe { core::mem::zeroed() } } } diff --git a/src/i...
3
3
3
26e46d14755afec11a664a11c56568141e3d9961
Lokathor
2020-05-07T05:08:24
(cargo-release) start next development iteration 0.2.5-alpha.0
diff --git a/Cargo.toml b/Cargo.toml index 3ecc5e7..ce269e6 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -2,7 +2,7 @@ name = "safe_arch" description = "Crate that exposes `core::arch` safely (via `#[cfg()]`)." repository = "https://github.com/Lokathor/safe_arch" -version = "0.2.4" +version = "0.2.5-alpha.0" authors ...
1
1
1
fe9b3f12ff3edfeffef1d770346444bc20123ac8
Lokathor
2020-05-07T05:08:12
(cargo-release) version 0.2.4
diff --git a/Cargo.toml b/Cargo.toml index 5807b3c..3ecc5e7 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -2,7 +2,7 @@ name = "safe_arch" description = "Crate that exposes `core::arch` safely (via `#[cfg()]`)." repository = "https://github.com/Lokathor/safe_arch" -version = "0.2.4-alpha.0" +version = "0.2.4" authors ...
1
1
1
f8cb444d6eb3f39e9f4c1f8d43eb81628bd8dedd
Lokathor
2020-05-07T05:08:06
fix docs_rs
diff --git a/src/lib.rs b/src/lib.rs index fb47e4f..34c91cc 100644 --- a/src/lib.rs +++ b/src/lib.rs @@ -2,7 +2,7 @@ #![warn(missing_docs)] #![allow(unused_imports)] #![allow(clippy::transmute_ptr_to_ptr)] -#![cfg_attr(building_on_docs_rs, feature(doc_cfg))] +#![cfg_attr(docs_rs, feature(doc_cfg))] //! A crate th...
1
1
1
263fe681925c076db09fdd41fe3aec50852deedc
Lokathor
2020-05-07T05:04:39
add repository to cargo.toml
diff --git a/Cargo.toml b/Cargo.toml index 42e8e19..5807b3c 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -1,6 +1,7 @@ [package] name = "safe_arch" description = "Crate that exposes `core::arch` safely (via `#[cfg()]`)." +repository = "https://github.com/Lokathor/safe_arch" version = "0.2.4-alpha.0" authors = ["Loka...
1
1
0
2763afa6991c2f77cd56472e88dacef3f7a472b5
Lokathor
2020-05-07T05:03:49
(cargo-release) start next development iteration 0.2.4-alpha.0
diff --git a/Cargo.toml b/Cargo.toml index 46908ec..42e8e19 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -1,7 +1,7 @@ [package] name = "safe_arch" description = "Crate that exposes `core::arch` safely (via `#[cfg()]`)." -version = "0.2.3" +version = "0.2.4-alpha.0" authors = ["Lokathor <zefria@gmail.com>"] edition ...
1
1
1
f80c9313f6ae42449bcb38810d2b81c8d77327c7
Lokathor
2020-05-07T05:03:35
(cargo-release) version 0.2.3
diff --git a/Cargo.toml b/Cargo.toml index e6ef988..46908ec 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -1,7 +1,7 @@ [package] name = "safe_arch" description = "Crate that exposes `core::arch` safely (via `#[cfg()]`)." -version = "0.2.3-alpha.0" +version = "0.2.3" authors = ["Lokathor <zefria@gmail.com>"] edition ...
1
1
1
a34c5b4b37e50ac3ad35a22f023e009b4004952b
Lokathor
2020-05-06T22:06:40
(cargo-release) start next development iteration 0.2.3-alpha.0
diff --git a/Cargo.toml b/Cargo.toml index 6b75975..9ad0fd3 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -1,7 +1,7 @@ [package] name = "safe_arch" description = "Crate that exposes `core::arch` safely (via `#[cfg()]`)." -version = "0.2.2" +version = "0.2.3-alpha.0" authors = ["Lokathor <zefria@gmail.com>"] edition ...
1
1
1
c96ed0ea3dc73b90a0e7d3afd0f2ecb952270ef7
Lokathor
2020-05-06T22:06:29
(cargo-release) version 0.2.2
diff --git a/Cargo.toml b/Cargo.toml index 06c3061..6b75975 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -1,7 +1,7 @@ [package] name = "safe_arch" description = "Crate that exposes `core::arch` safely (via `#[cfg()]`)." -version = "0.2.2-alpha.0" +version = "0.2.2" authors = ["Lokathor <zefria@gmail.com>"] edition ...
1
1
1
e099cf187cb6107f25de357f17e40441c14fa220
Lokathor
2020-05-06T22:05:42
ssse3 is also a short one. (#14)
diff --git a/src/intel/sse3.rs b/src/intel/sse3.rs index 751a827..136f3a8 100644 --- a/src/intel/sse3.rs +++ b/src/intel/sse3.rs @@ -30,7 +30,7 @@ pub fn add_sub_m128(a: m128, b: m128) -> m128 { m128(unsafe { _mm_addsub_ps(a.0, b.0) }) } -/// Perform a "horizontal add" of the lanes to adjacent lanes. +/// Add eac...
3
295
10
d34ee3e75befc0de14e41dc8d8d0013dc0264611
Lokathor
2020-05-06T18:07:47
(cargo-release) start next development iteration 0.2.2-alpha.0
diff --git a/Cargo.toml b/Cargo.toml index d6bb890..06c3061 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -1,7 +1,7 @@ [package] name = "safe_arch" description = "Crate that exposes `core::arch` safely (via `#[cfg()]`)." -version = "0.2.1" +version = "0.2.2-alpha.0" authors = ["Lokathor <zefria@gmail.com>"] edition ...
1
1
1
6e339b1b0e9ce0989b608f559c4d742c64fb2e8c
Lokathor
2020-05-06T18:07:37
(cargo-release) version 0.2.1
diff --git a/Cargo.toml b/Cargo.toml index dc6f132..d6bb890 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -1,7 +1,7 @@ [package] name = "safe_arch" description = "Crate that exposes `core::arch` safely (via `#[cfg()]`)." -version = "0.2.1-alpha.0" +version = "0.2.1" authors = ["Lokathor <zefria@gmail.com>"] edition ...
1
1
1
3e1a14d5d91efed4589823948cfe756cfb29944e
Lokathor
2020-05-05T23:16:21
(cargo-release) start next development iteration 0.2.1-alpha.0
diff --git a/Cargo.toml b/Cargo.toml index 75db7c5..8c2f0f0 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -1,7 +1,7 @@ [package] name = "safe_arch" description = "Crate that exposes `core::arch` safely (via `#[cfg()]`)." -version = "0.2.0" +version = "0.2.1-alpha.0" authors = ["Lokathor <zefria@gmail.com>"] edition ...
1
1
1
8bf6019d39dc9897bfd1d0941204f0427ae7462c
Lokathor
2020-05-05T23:16:05
(cargo-release) version 0.2.0
diff --git a/Cargo.toml b/Cargo.toml index 2f3fc7f..75db7c5 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -1,7 +1,7 @@ [package] name = "safe_arch" description = "Crate that exposes `core::arch` safely (via `#[cfg()]`)." -version = "0.2.0-alpha.0" +version = "0.2.0" authors = ["Lokathor <zefria@gmail.com>"] edition ...
1
1
1
973a4609926ed308426720f2a7f16c192ef3c769
Lokathor
2020-04-29T23:28:49
Sse fixes (#9) * Closes https://github.com/Lokathor/safe_arch/issues/3 * Closes https://github.com/Lokathor/safe_arch/issues/7 * this will have to be a new version * Closes https://github.com/Lokathor/safe_arch/issues/2 * Closes https://github.com/Lokathor/safe_arch/issues/8 * safety justification note...
diff --git a/Cargo.toml b/Cargo.toml index 26dccf4..da96611 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -1,7 +1,7 @@ [package] name = "safe_arch" description = "Crate that exposes `core::arch` safely (via `#[cfg()]`)." -version = "0.1.1-alpha.0" +version = "0.2.0-alpha.0" authors = ["Lokathor <zefria@gmail.com>"] ...
4
251
164
1f5e2e8064dd0156346e065050b237b70b47d704
Lokathor
2020-04-29T02:54:05
(cargo-release) start next development iteration 0.1.1-alpha.0
diff --git a/Cargo.toml b/Cargo.toml index 32b2104..26dccf4 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -1,7 +1,7 @@ [package] name = "safe_arch" description = "Crate that exposes `core::arch` safely (via `#[cfg()]`)." -version = "0.1.0" +version = "0.1.1-alpha.0" authors = ["Lokathor <zefria@gmail.com>"] edition ...
1
1
1
ba8bc92e4164e6f060f107a7b8c9cfd26c0f412b
Lokathor
2020-04-29T02:53:55
(cargo-release) version 0.1.0
diff --git a/Cargo.toml b/Cargo.toml index 74c6993..32b2104 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -1,7 +1,7 @@ [package] name = "safe_arch" description = "Crate that exposes `core::arch` safely (via `#[cfg()]`)." -version = "0.0.0-alpha" +version = "0.1.0" authors = ["Lokathor <zefria@gmail.com>"] edition = ...
1
1
1
0bc0f545f203eed11a327fa7f9e635f8956e2068
wojciech-graj
2026-03-14T20:41:09
Add bin-proto support (#218) Co-authored-by: Lokathor <zefria@gmail.com>
diff --git a/Cargo.toml b/Cargo.toml index d42e79d..02c610f 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -20,6 +20,8 @@ arbitrary = { version = "1", optional = true } borsh = { version = "1.2.0", optional = true, default-features = false } # Implements the trait `Array` for `GenericArray` struct. generic-array = { ve...
6
273
1
d6c8a5f222f73e86056d086072effdf0deaa39ee
lokathor
2026-03-14T19:27:37
chore: Release
diff --git a/Cargo.toml b/Cargo.toml index caf0034..d42e79d 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -1,7 +1,7 @@ [package] name = "tinyvec" description = "`tinyvec` provides 100% safe vec-like data structures." -version = "1.10.0" +version = "1.11.0" authors = ["Lokathor <zefria@gmail.com>"] edition = "2018" ...
1
1
1
bb18ff1618e889f0e662263d09329d44d0ebff3a
wojciech-graj
2026-03-14T19:12:41
Add is_full method (#217)
diff --git a/fuzz/src/bin/arrayish.rs b/fuzz/src/bin/arrayish.rs index 03c9ccc..2eb0652 100644 --- a/fuzz/src/bin/arrayish.rs +++ b/fuzz/src/bin/arrayish.rs @@ -25,6 +25,7 @@ arbitrary_stateful_operations! { fn extend_from_slice(&mut self, sli: &Box<[T]>); fn insert(&mut self, index: usize, it...
4
16
0
219f2874bdede66136c6756405e83ff899168ef3
wojciech-graj
2026-03-14T19:10:01
Add as_mut_inner method (#215)
diff --git a/src/arrayvec.rs b/src/arrayvec.rs index 5c98034..e47f430 100644 --- a/src/arrayvec.rs +++ b/src/arrayvec.rs @@ -1257,6 +1257,17 @@ impl<A> ArrayVec<A> { pub const fn as_inner(&self) -> &A { &self.data } + + /// Returns a mutable reference to the inner array of the `ArrayVec`. + /// + /// This...
2
34
0
5809985ddfd0befbe6480d5e5330d17a632109a4
Leon Wimbes
2026-03-14T19:08:16
chore: switch to serde_core (#213)
diff --git a/Cargo.toml b/Cargo.toml index 819fd44..4eea35f 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -13,7 +13,7 @@ exclude = ["/.github", "/*.py", "/*.sh", "/src-backup"] [dependencies] tinyvec_macros = { version = "0.1", optional = true } # Provides `Serialize` and `Deserialize` implementations -serde = { versi...
3
8
5
10f783e57a200965dd84c4a3a401f071d42c57b1
Oli Scherer
2026-01-28T16:18:21
Remove leftover comment from before the const generic days (#214)
diff --git a/src/array.rs b/src/array.rs index 895ee30..78ef2f3 100644 --- a/src/array.rs +++ b/src/array.rs @@ -9,8 +9,6 @@ /// You are generally **not** expected to need to implement this yourself. It is /// already implemented for all array lengths. /// -/// **Additional lengths can easily be added upon request.*...
1
0
2
842e1692b380c254a98caae8e7ee5fbff103c742
xibeiyoumian
2025-12-22T18:06:39
chore: improve code comments clarity (#212) Signed-off-by: xibeiyoumian <xibeiyoumian@outlook.com>
diff --git a/src/arrayvec.rs b/src/arrayvec.rs index 4a1593a..c55796d 100644 --- a/src/arrayvec.rs +++ b/src/arrayvec.rs @@ -57,7 +57,7 @@ macro_rules! array_vec { /// * `ArrayVec` has a variable length, as you add and remove elements. Attempts /// to fill the vec beyond its capacity will cause a panic. /// * All ...
1
2
2
a6db0821305a72fd570462049e9088711b592776
Mateusz Kowalczyk
2025-12-19T19:01:52
Make Debug instances behave like those for slices (#211) The indentantion in case of structs inside the arrays was wrong with pretty debug instance. Instead of rolling one by hand, just use the underlying slice implementation. It appears that this was even the intention orginally, based on the `TinyVec_pretty_debug` t...
diff --git a/src/arrayvec.rs b/src/arrayvec.rs index 46d80c4..4a1593a 100644 --- a/src/arrayvec.rs +++ b/src/arrayvec.rs @@ -1712,20 +1712,7 @@ where { #[allow(clippy::missing_inline_in_public_items)] fn fmt(&self, f: &mut Formatter) -> core::fmt::Result { - write!(f, "[")?; - if f.alternate() && !self.is_...
4
74
42
3c613ad020738e6fb49e207ff51d38e403bb98ed
Lokathor
2025-08-18T23:09:19
chore: Release
diff --git a/Cargo.toml b/Cargo.toml index 00b747d..819fd44 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -1,7 +1,7 @@ [package] name = "tinyvec" description = "`tinyvec` provides 100% safe vec-like data structures." -version = "1.9.0" +version = "1.10.0" authors = ["Lokathor <zefria@gmail.com>"] edition = "2018" l...
1
1
1
f83214e657df4fea93be654859fcfe85687a1232
Lokathor
2025-03-03T04:38:34
chore: Release
diff --git a/Cargo.toml b/Cargo.toml index 090810a..dff4e91 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -1,7 +1,7 @@ [package] name = "tinyvec" description = "`tinyvec` provides 100% safe vec-like data structures." -version = "1.8.1" +version = "1.9.0" authors = ["Lokathor <zefria@gmail.com>"] edition = "2018" li...
1
1
1
c9c698d4970b54cb658fe845b0dd37e74502e568
Mateusz Kowalczyk
2025-03-03T04:28:09
Add optional support for borsh serialisation (#186) Co-authored-by: Lokathor <zefria@gmail.com>
diff --git a/Cargo.toml b/Cargo.toml index 4678dab..090810a 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -16,9 +16,12 @@ tinyvec_macros = { version = "0.1", optional = true } serde = { version = "1.0", optional = true, default-features = false } # Provides derived `Arbitrary` implementations arbitrary = { version = "...
6
152
3
9726c64bb241b7f853509baebd3c4eb8138c8301
Lohann Paterno Coutinho Ferreira
2025-01-29T22:42:13
Basic support to generic array (#204)
diff --git a/Cargo.toml b/Cargo.toml index f46fc01..ba53b31 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -16,6 +16,8 @@ tinyvec_macros = { version = "0.1", optional = true } serde = { version = "1.0", optional = true, default-features = false } # Provides derived `Arbitrary` implementations arbitrary = { version = "1...
3
34
0
659e6c1f1f683b7504e71b6773cf0cdb86b1faf3
Lokathor
2024-12-20T19:48:45
chore: Release
diff --git a/Cargo.toml b/Cargo.toml index bdf201c..f46fc01 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -1,7 +1,7 @@ [package] name = "tinyvec" description = "`tinyvec` provides 100% safe vec-like data structures." -version = "1.8.0" +version = "1.8.1" authors = ["Lokathor <zefria@gmail.com>"] edition = "2018" li...
1
1
1
e4153c863b96cad3a89ddc09377400d799573493
Lokathor
2024-12-17T00:27:10
Update lib.rs (#201)
diff --git a/src/lib.rs b/src/lib.rs index 3b9f00c..8970878 100644 --- a/src/lib.rs +++ b/src/lib.rs @@ -15,6 +15,7 @@ #![warn(missing_docs)] #![allow(clippy::borrow_deref_ref)] #![allow(unused_imports)] +#![allow(unused_mut)] #![allow(clippy::write_with_newline)] #![allow(clippy::needless_return)]
1
1
0
a21222890ee0e8a37764fde0b6eb607cd9bcfaae
Valentin
2024-08-21T18:37:12
Fix rustc features not depending on each other (#199) This crate has several features related to the rustc version. It is currently a bug that not all off these features depend on the lower rustc version features. This commit fixes this. This bug leads to bad user experience. For example, you notice that by default...
diff --git a/Cargo.toml b/Cargo.toml index 44e7a7e..bdf201c 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -35,7 +35,7 @@ rustc_1_40 = [] # features that require rustc 1.55 # use const generics to implement Array for all array lengths -rustc_1_55 = [] +rustc_1_55 = ["rustc_1_40"] # features that require rustc 1.57 ...
1
2
2
4afac90195d3032eee7f1651111c0e78dd5b99a3
Lokathor
2024-07-08T15:24:00
chore: Release
diff --git a/Cargo.toml b/Cargo.toml index 1f7dda2..44e7a7e 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -1,7 +1,7 @@ [package] name = "tinyvec" description = "`tinyvec` provides 100% safe vec-like data structures." -version = "1.7.0" +version = "1.8.0" authors = ["Lokathor <zefria@gmail.com>"] edition = "2018" li...
1
1
1
1838a185d7698bcbb4eb99e7c11d1343768a6518
Mateusz Kowalczyk
2024-07-08T01:02:42
Add ArrayVec::as_inner() (#197) Originally I was going to call this `as_array()` but `as_inner()` is more consistent with the existing `into_inner()` method. I don't _ultimately_ care what it ends up being called. I wonder if we should have a `impl From<ArrayVec<T>> for A` implementation or is that a bit too f...
diff --git a/src/arrayvec.rs b/src/arrayvec.rs index 9c970ac..f40b617 100644 --- a/src/arrayvec.rs +++ b/src/arrayvec.rs @@ -1183,6 +1183,18 @@ impl<A: Array> ArrayVec<A> { } } +impl<A> ArrayVec<A> { + /// Returns the reference to the inner array of the `ArrayVec`. + /// + /// This returns the full array, even...
1
12
0
ed22e15f2959ece08cfcf831e524e36775480a7f
Lokathor
2024-07-05T19:03:57
chore: Release
diff --git a/Cargo.toml b/Cargo.toml index ca9f4b3..1f7dda2 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -1,7 +1,7 @@ [package] name = "tinyvec" description = "`tinyvec` provides 100% safe vec-like data structures." -version = "1.6.1" +version = "1.7.0" authors = ["Lokathor <zefria@gmail.com>"] edition = "2018" li...
1
1
1
5097217dccab1f0b01371a0f183c905a97ed295c
Mateusz Kowalczyk
2024-07-05T18:56:31
Add retain_mut (#198) * Add retain_mut This adds a `retain_mut` method to `ArrayVec` and `TinyVec` that's just `retain` but with mutable references. This method is present on `std::vec::Vec` as of a while ago so it's nice to have in `tinyvec` too. Fixes #195 * `TinyVec::retain_mut` requires rustc_1_61 fea...
diff --git a/Cargo.toml b/Cargo.toml index 61c094c..ca9f4b3 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -41,6 +41,10 @@ rustc_1_55 = [] # add try_reserve functions to types that heap allocate. rustc_1_57 = ["rustc_1_55"] +# features that require rustc 1.61 +# add retain_mut function to TinyVec +rustc_1_61 = [] + #...
3
124
0
612c87d0d799b98c662ca44943b6531120d2168b
Lokathor
2024-06-25T05:09:12
chore: Release
diff --git a/Cargo.toml b/Cargo.toml index 2f8471d..61c094c 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -1,7 +1,7 @@ [package] name = "tinyvec" description = "`tinyvec` provides 100% safe vec-like data structures." -version = "1.6.0" +version = "1.6.1" authors = ["Lokathor <zefria@gmail.com>"] edition = "2018" li...
1
1
1
1169b119b2f8e152eb37b73211aba09e64b9bfd2
Lokathor
2024-03-19T14:04:03
Resolves https://github.com/Lokathor/tinyvec/issues/191
diff --git a/src/tinyvec.rs b/src/tinyvec.rs index 5509f4b..54a9ee8 100644 --- a/src/tinyvec.rs +++ b/src/tinyvec.rs @@ -841,14 +841,6 @@ impl<A: Array> TinyVec<A> { } /// Place an element onto the end of the vec. - /// ## Panics - /// * If the length of the vec would overflow the capacity. - /// ```rust - ...
1
0
8
a79d8e4d26d6af9eff8ff8387e66dc33ba306936
Lokathor
2024-03-19T13:48:26
warnings cleanup
diff --git a/src/arrayvec.rs b/src/arrayvec.rs index 342edbb..52aeeb1 100644 --- a/src/arrayvec.rs +++ b/src/arrayvec.rs @@ -146,6 +146,7 @@ where } impl<A: Array> Default for ArrayVec<A> { + #[inline] fn default() -> Self { Self { len: 0, data: A::default() } } @@ -1219,6 +1220,7 @@ where impl<'p, A: ...
5
21
5
549e11423685358374164d73ddda83dc73bcbb74
Lokathor
2023-12-05T02:08:07
Update Cargo.toml (#187)
diff --git a/Cargo.toml b/Cargo.toml index 98caf1a..2f8471d 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -69,9 +69,6 @@ rustdoc-args = ["--cfg","docs_rs"] [package.metadata.playground] features = ["alloc", "std", "grab_spare_slice", "rustc_1_55", "serde"] -[profile.test] -opt-level = 3 - [profile.bench] debug = 2
1
0
3
d1a470006d995f4dda7e64553d6b5174f492196d
Jake Shadle
2023-09-04T01:21:19
Remove unneeded files from crate package (#185) * Remove unneeded files from crate package * Add back debug README
diff --git a/Cargo.toml b/Cargo.toml index 8639093..98caf1a 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -8,6 +8,7 @@ license = "Zlib OR Apache-2.0 OR MIT" keywords = ["vec", "no_std", "no-std"] categories = ["data-structures", "no-std"] repository = "https://github.com/Lokathor/tinyvec" +exclude = ["/.github", "/*.p...
1
1
0
350cf621a4325b8e836f45c8b66927a6241a70dc
Valentin
2023-02-23T00:05:31
Fix Arbitrary implementation on ArrayVec (#180) - No longer needs to be guarded behind any feature. - Can generate non full ArrayVecs. - Implements size_hint.
diff --git a/src/arrayvec.rs b/src/arrayvec.rs index ec93df6..342edbb 100644 --- a/src/arrayvec.rs +++ b/src/arrayvec.rs @@ -218,19 +218,29 @@ where } } -#[cfg(all(feature = "arbitrary", feature = "nightly_const_generics"))] -#[cfg_attr( - docs_rs, - doc(cfg(all(feature = "arbitrary", feature = "nightly_const_g...
1
20
10
48c004ddc27eebc8484a30602c894ba3915ec721
Valentin
2023-02-22T23:28:24
Fix ArrayVec capacity not taking u16::MAX into account (#178) The capacity is limited by the backing array and u16::MAX because the length is stored as a u16. This was not taken into account in the `fn capacity` implementation.
diff --git a/src/arrayvec.rs b/src/arrayvec.rs index fada9b6..ec93df6 100644 --- a/src/arrayvec.rs +++ b/src/arrayvec.rs @@ -51,9 +51,9 @@ macro_rules! array_vec { /// An array-backed, vector-like data structure. /// -/// * `ArrayVec` has a fixed capacity, equal to the array size. Note that not -/// all capacitie...
1
4
4
2a0421f17272dd15903b225e2e15e6c8b75f769c
Ben Sully
2022-12-09T00:17:30
Implement ExactSizeIterator for ArrayVecIterator and TinyVecIterator (#173) These implementations weren't present but I'm not sure there was a reason. They seem pretty sound to me, but I'm very new to looking at this crate!
diff --git a/src/arrayvec.rs b/src/arrayvec.rs index fb4ec72..43db52c 100644 --- a/src/arrayvec.rs +++ b/src/arrayvec.rs @@ -1420,6 +1420,13 @@ impl<A: Array> DoubleEndedIterator for ArrayVecIterator<A> { } } +impl<A: Array> ExactSizeIterator for ArrayVecIterator<A> { + #[inline] + fn len(&self) -> usize { + ...
2
15
0
12d7337a5863e24002a67ddbd7d8ad6cb4787803
MaulingMonkey
2022-11-27T02:27:10
Fix debugger_visualizer.rs tests (#171) * Fix debugger_visualizer.rs tests Nightly replaced a lot of "str" with "ref$<str$>". Took the approach of abusing wildcard ".*str.*" regexps/patterns to make this test less brittle to rustc/std specifics. https://github.com/rust-lang/rust/commit/0cd2dd7263a20ba62591039cd...
diff --git a/tests/debugger_visualizer.rs b/tests/debugger_visualizer.rs index d41e255..46827ce 100644 --- a/tests/debugger_visualizer.rs +++ b/tests/debugger_visualizer.rs @@ -18,13 +18,13 @@ g dx strings "#, expected_statements = r#" -strings : { len=0x3 } [Type: tinyvec::arrayvec::ArrayVec<array$<str...
1
26
26
bd73a7dc39ac19854a55b75aa36a2897aabe5233
Michael Schubart
2022-11-26T17:45:06
Doc: Not all capacities are supported by default (#170) This improves #169. I put the comment where *I* would have found it.
diff --git a/src/arrayvec.rs b/src/arrayvec.rs index 42ed134..fb4ec72 100644 --- a/src/arrayvec.rs +++ b/src/arrayvec.rs @@ -51,7 +51,9 @@ macro_rules! array_vec { /// An array-backed, vector-like data structure. /// -/// * `ArrayVec` has a fixed capacity, equal to the array size. +/// * `ArrayVec` has a fixed capa...
1
3
1
a711c72eef6d555ebc7bbbe78bf5039e72f790ac
Andy Li
2022-06-16T14:37:20
fix `Debug` alternate mode for empty containers (#162)
diff --git a/src/arrayvec.rs b/src/arrayvec.rs index 9e47632..42ed134 100644 --- a/src/arrayvec.rs +++ b/src/arrayvec.rs @@ -1573,7 +1573,7 @@ where #[allow(clippy::missing_inline_in_public_items)] fn fmt(&self, f: &mut Formatter) -> core::fmt::Result { write!(f, "[")?; - if f.alternate() { + if f.alte...
3
6
6
6e326cc48208229d1f28abf74a3e06944c8f7bec
Lokathor
2022-04-25T16:34:31
(cargo-release) version 1.6.0
diff --git a/Cargo.toml b/Cargo.toml index 8c51e25..b18ea9e 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -1,7 +1,7 @@ [package] name = "tinyvec" description = "`tinyvec` provides 100% safe vec-like data structures." -version = "1.5.1" +version = "1.6.0" authors = ["Lokathor <zefria@gmail.com>"] edition = "2018" li...
1
1
1
7b3392a8c424155843771f36acd67a841c50d873
Lokathor
2022-04-25T15:35:49
`std` feature now automatically activates the `alloc` feature Closes https://github.com/Lokathor/tinyvec/issues/159
diff --git a/Cargo.toml b/Cargo.toml index 6bd33e7..8c51e25 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -23,7 +23,7 @@ default = [] alloc = ["tinyvec_macros"] # Provide things that require Rust's `std` module -std = [] +std = ["alloc"] # (not part of Vec!) Extra methods to let you grab the slice of memory after ...
1
1
1
a53c254b885f914dfb584c141d06cdd02df368bc
ajtribick
2022-04-23T18:18:14
Error implementation for TryFromSliceError (#160) * Fix spelling of 'length' * Add Error implementation to TryFromSliceError
diff --git a/src/arrayvec.rs b/src/arrayvec.rs index e52e832..9e47632 100644 --- a/src/arrayvec.rs +++ b/src/arrayvec.rs @@ -1271,7 +1271,7 @@ impl<A: Array> From<A> for ArrayVec<A> { .as_slice() .len() .try_into() - .expect("ArrayVec::from> lenght must be in range 0..=u16::MAX"); + .expe...
1
10
1
7c85b93627d2bf282aacdd7d1b8f9f7faadfda21
i509VCB
2022-04-20T18:43:34
add `try_` functions for fallible heap growth (#158) * add try_ functions for fallible heap growth * tests for try_ functions
diff --git a/Cargo.toml b/Cargo.toml index 28a5874..6bd33e7 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -38,6 +38,10 @@ rustc_1_40 = [] # use const generics to implement Array for all array lengths rustc_1_55 = ["rustc_1_40"] +# features that require rustc 1.57 +# add try_reserve functions to types that heap alloca...
4
239
0
1ef53f632b9cb6f2e7ff603586f4472317b9a25c
Lokathor
2021-11-09T19:27:53
(cargo-release) version 1.5.1
diff --git a/Cargo.toml b/Cargo.toml index d3a647e..28a5874 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -1,7 +1,7 @@ [package] name = "tinyvec" description = "`tinyvec` provides 100% safe vec-like data structures." -version = "1.5.1-alpha.0" +version = "1.5.1" authors = ["Lokathor <zefria@gmail.com>"] edition = "2...
1
1
1
7a06b43b1a051c7af59b8e14aa21a70d9ec28a4e
Lokathor
2021-09-25T00:59:43
(cargo-release) start next development iteration 1.5.1-alpha.0
diff --git a/Cargo.toml b/Cargo.toml index b255e69..695727f 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -1,7 +1,7 @@ [package] name = "tinyvec" description = "`tinyvec` provides 100% safe vec-like data structures." -version = "1.5.0" +version = "1.5.1-alpha.0" authors = ["Lokathor <zefria@gmail.com>"] edition = "2...
1
1
1
3a524d71a192293e109e673e9df39eda1bc6131c
Lokathor
2021-09-25T00:58:43
(cargo-release) version 1.5.0
diff --git a/Cargo.toml b/Cargo.toml index 13f7501..b255e69 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -1,7 +1,7 @@ [package] name = "tinyvec" description = "`tinyvec` provides 100% safe vec-like data structures." -version = "1.4.1-alpha.0" +version = "1.5.0" authors = ["Lokathor <zefria@gmail.com>"] edition = "2...
1
1
1
c29345bdcc3fc3e7984cefc0494860b89ee68f75
Lokathor
2021-09-25T00:51:21
add the doc attribute.
diff --git a/src/tinyvec.rs b/src/tinyvec.rs index 7623fa8..11bf9df 100644 --- a/src/tinyvec.rs +++ b/src/tinyvec.rs @@ -173,6 +173,7 @@ impl<A: Array, I: SliceIndex<[A::Item]>> IndexMut<I> for TinyVec<A> { } #[cfg(feature = "std")] +#[cfg_attr(docs_rs, doc(cfg(feature = "std")))] impl<A: Array<Item = u8>> std::io...
1
1
0
ddac2c75645f76f11ddcf23502f576cb201ab69c
Lokathor
2021-09-25T00:39:10
enable `std` feature in docs and playground.
diff --git a/Cargo.toml b/Cargo.toml index 3863c3d..13f7501 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -50,11 +50,11 @@ nightly_slice_partition_dedup = [] experimental_write_impl = [] [package.metadata.docs.rs] -features = ["alloc", "grab_spare_slice", "rustc_1_40", "rustc_1_55", "serde"] +features = ["alloc", "st...
1
2
2
750f684d4f74383b901af9c9d5d45515ea2f66a5
Eric Ridge
2021-09-24T17:58:46
Issue #151: impl std::io::Write for u8-based TinyVecs (#152) * impl std::io::Write for u8-based TinyVec * undo bad formatting * fix formatting
diff --git a/Cargo.toml b/Cargo.toml index 4ca9680..3863c3d 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -22,6 +22,9 @@ default = [] # Provide things that utilize the `alloc` crate, namely `TinyVec`. alloc = ["tinyvec_macros"] +# Provide things that require Rust's `std` module +std = [] + # (not part of Vec!) Extra...
4
34
2
5ae25421e77dd8f32b8898d3bae558f40ea6c043
Lokathor
2021-09-12T01:06:43
(cargo-release) start next development iteration 1.4.1-alpha.0
diff --git a/Cargo.toml b/Cargo.toml index 884834e..4ca9680 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -1,7 +1,7 @@ [package] name = "tinyvec" description = "`tinyvec` provides 100% safe vec-like data structures." -version = "1.4.0" +version = "1.4.1-alpha.0" authors = ["Lokathor <zefria@gmail.com>"] edition = "2...
1
1
1
7518868e4b9c802b214ce393f79f82fa13bef251
Lokathor
2021-09-12T01:06:05
(cargo-release) version 1.4.0
diff --git a/Cargo.toml b/Cargo.toml index 0a8e51a..884834e 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -1,7 +1,7 @@ [package] name = "tinyvec" description = "`tinyvec` provides 100% safe vec-like data structures." -version = "1.3.2-alpha.0" +version = "1.4.0" authors = ["Lokathor <zefria@gmail.com>"] edition = "2...
1
1
1
3822f3073121bcc0bf6efa53dd70128e8ae1f497
Lokathor
2021-09-12T01:05:15
1.55 imples 1.40
diff --git a/Cargo.toml b/Cargo.toml index f417304..0a8e51a 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -33,7 +33,7 @@ rustc_1_40 = [] # features that require rustc 1.55 # use const generics to implement Array for all array lengths -rustc_1_55 = [] +rustc_1_55 = ["rustc_1_40"] # allow use of nightly feature `sli...
1
1
1
b645e08d8b08f0b2af9140ad6e9a23edd1fdcf83
Ben Kimock
2021-09-12T00:54:59
Rename nightly_const_generics to rustc_1_55 and remove feature gate (#149)
diff --git a/Cargo.toml b/Cargo.toml index e20a219..f417304 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -31,14 +31,15 @@ grab_spare_slice = [] # DoubleEndedIterator::nth_back - 1.40 rustc_1_40 = [] +# features that require rustc 1.55 +# use const generics to implement Array for all array lengths +rustc_1_55 = [] + ...
3
9
12
94fc4ee0d7d443515d0331dc5dce49b510334339
Lokathor
2021-07-22T00:15:13
(cargo-release) start next development iteration 1.3.2-alpha.0
diff --git a/Cargo.toml b/Cargo.toml index 28d3295..e20a219 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -1,7 +1,7 @@ [package] name = "tinyvec" description = "`tinyvec` provides 100% safe vec-like data structures." -version = "1.3.1" +version = "1.3.2-alpha.0" authors = ["Lokathor <zefria@gmail.com>"] edition = "2...
1
1
1
a4bbfa9864d6a9d5ac607841025b517e618f3c8f
Lokathor
2021-07-22T00:14:40
(cargo-release) version 1.3.1
diff --git a/Cargo.toml b/Cargo.toml index 021e4ba..28d3295 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -1,7 +1,7 @@ [package] name = "tinyvec" description = "`tinyvec` provides 100% safe vec-like data structures." -version = "1.3.1-alpha.0" +version = "1.3.1" authors = ["Lokathor <zefria@gmail.com>"] edition = "2...
1
1
1
4fd45614125399fa22fa9c98d6d14256aab42613
Lokathor
2021-07-20T13:41:15
(cargo-release) start next development iteration 1.3.1-alpha.0
diff --git a/Cargo.toml b/Cargo.toml index 1eb2416..021e4ba 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -1,7 +1,7 @@ [package] name = "tinyvec" description = "`tinyvec` provides 100% safe vec-like data structures." -version = "1.3.0" +version = "1.3.1-alpha.0" authors = ["Lokathor <zefria@gmail.com>"] edition = "2...
1
1
1
d1868b51713b6f141f792532cf89a2ebc6648266
Lokathor
2021-07-20T13:40:50
(cargo-release) version 1.3.0
diff --git a/Cargo.toml b/Cargo.toml index fb40bca..1eb2416 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -1,7 +1,7 @@ [package] name = "tinyvec" description = "`tinyvec` provides 100% safe vec-like data structures." -version = "1.2.1-alpha.0" +version = "1.3.0" authors = ["Lokathor <zefria@gmail.com>"] edition = "2...
1
1
1
afb1dc4df87338cfa00fe1ed749a5c881cbcfd47
Andrew Jeffery
2021-07-13T12:52:19
Add arbitrary implementations for TinyVec and ArrayVec (#146)
diff --git a/Cargo.toml b/Cargo.toml index 311e379..fb40bca 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -13,6 +13,8 @@ repository = "https://github.com/Lokathor/tinyvec" tinyvec_macros = { version = "0.1", optional = true } # Provides `Serialize` and `Deserialize` implementations serde = { version = "1.0", optional ...
3
33
0
3c5ce49e36f69284804fbf1f778ad1473b99ef05
Ole Bertram
2021-07-13T12:49:17
Implement DoubleEndedIterator for TinyVecIterator (#145)
diff --git a/src/tinyvec.rs b/src/tinyvec.rs index 32519c7..4ef9aeb 100644 --- a/src/tinyvec.rs +++ b/src/tinyvec.rs @@ -1190,6 +1190,19 @@ impl<A: Array> Iterator for TinyVecIterator<A> { } } +impl<A: Array> DoubleEndedIterator for TinyVecIterator<A> { + impl_mirrored! { + type Mirror = TinyVecIterator; + + ...
1
13
0
3d6b6ee215ebd0f73452196f5ab467ab1121d31a
Lokathor
2021-04-04T16:37:03
(cargo-release) start next development iteration 1.2.1-alpha.0
diff --git a/Cargo.toml b/Cargo.toml index 51e43b4..311e379 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -1,7 +1,7 @@ [package] name = "tinyvec" description = "`tinyvec` provides 100% safe vec-like data structures." -version = "1.2.0" +version = "1.2.1-alpha.0" authors = ["Lokathor <zefria@gmail.com>"] edition = "2...
1
1
1
b6313725a26509d574ccf72885bc9c85fc4f476b
Lokathor
2021-04-04T16:36:21
(cargo-release) version 1.2.0
diff --git a/Cargo.toml b/Cargo.toml index 20f967f..51e43b4 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -1,7 +1,7 @@ [package] name = "tinyvec" description = "`tinyvec` provides 100% safe vec-like data structures." -version = "1.1.2-alpha.0" +version = "1.2.0" authors = ["Lokathor <zefria@gmail.com>"] edition = "2...
1
1
1
25654733a1f518fc108004496eb48093868e08ba
Cryptjar
2021-04-04T15:13:15
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, ...
diff --git a/src/arrayvec.rs b/src/arrayvec.rs index 3f8a672..588f010 100644 --- a/src/arrayvec.rs +++ b/src/arrayvec.rs @@ -96,10 +96,13 @@ macro_rules! array_vec { /// /// let more_ints = ArrayVec::from_array_len([5, 6, 7, 8], 2); /// assert_eq!(more_ints.len(), 2); +/// +/// let no_ints: ArrayVec<[u8; 5]> = Array...
1
35
1
0e0dc46d37b19d2a350896ed788c84218812b740
Lokathor
2021-04-02T01:47:38
use alternate printing when requested. (#139)
diff --git a/src/arrayvec.rs b/src/arrayvec.rs index 1ab2f2c..3f8a672 100644 --- a/src/arrayvec.rs +++ b/src/arrayvec.rs @@ -1,5 +1,5 @@ use super::*; -use core::convert::{TryInto, TryFrom}; +use core::convert::{TryFrom, TryInto}; #[cfg(feature = "serde")] use core::marker::PhantomData; @@ -1190,20 +1190,22 @@ imp...
3
210
32
35082e1d159de19c7ebaa699a61e6b9475773365
Soveu
2021-03-24T17:55:02
TinyVec::fmt - fix pretty printing (#138) * TinyVec::fmt - fix pretty printing * ArrayVec::fmt - fix pretty printing
diff --git a/src/arrayvec.rs b/src/arrayvec.rs index 7fa4263..1ab2f2c 100644 --- a/src/arrayvec.rs +++ b/src/arrayvec.rs @@ -1469,14 +1469,7 @@ where { #[allow(clippy::missing_inline_in_public_items)] fn fmt(&self, f: &mut Formatter) -> core::fmt::Result { - write!(f, "[")?; - for (i, elem) in self.iter()....
4
22
16
8d8ae29ba55436128ca3598fe2d914df5de76b5a
Michael Morgan
2021-03-02T03:02:24
Add TryFrom<&'_ [A::Item]> for ArrayVec<A> (#134)
diff --git a/src/arrayvec.rs b/src/arrayvec.rs index 26f21d4..7fa4263 100644 --- a/src/arrayvec.rs +++ b/src/arrayvec.rs @@ -1,5 +1,5 @@ use super::*; -use core::convert::TryInto; +use core::convert::{TryInto, TryFrom}; #[cfg(feature = "serde")] use core::marker::PhantomData; @@ -1190,6 +1190,39 @@ impl<A: Array> ...
3
56
14
643a1707f55f7adf380c250691d09b773bc3f6ac
Lokathor
2021-01-26T01:27:23
(cargo-release) start next development iteration 1.1.2-alpha.0
diff --git a/Cargo.toml b/Cargo.toml index 7d208f1..20f967f 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -1,7 +1,7 @@ [package] name = "tinyvec" description = "`tinyvec` provides 100% safe vec-like data structures." -version = "1.1.1" +version = "1.1.2-alpha.0" authors = ["Lokathor <zefria@gmail.com>"] edition = "2...
1
1
1