| { | ||
| "git": { | ||
| "sha1": "6c63769d9186fd4b08436bb3c17d3d3fcfbd438d" | ||
| "sha1": "7b1c49be8f92d20a4c85e0f62be373c02c2619ca" | ||
| } | ||
| } |
+55
-49
@@ -28,3 +28,3 @@ # This file is automatically @generated by Cargo. | ||
| name = "bitvec" | ||
| version = "0.19.3" | ||
| version = "0.19.4" | ||
| dependencies = [ | ||
@@ -44,5 +44,5 @@ "criterion", | ||
| name = "bstr" | ||
| version = "0.2.13" | ||
| version = "0.2.14" | ||
| source = "registry+https://github.com/rust-lang/crates.io-index" | ||
| checksum = "31accafdb70df7871592c058eca3985b71104e15ac32f64706022c58867da931" | ||
| checksum = "473fc6b38233f9af7baa94fb5852dca389e3d95b8e21c8e3719301462c5d9faf" | ||
| dependencies = [ | ||
@@ -83,2 +83,8 @@ "lazy_static", | ||
| [[package]] | ||
| name = "cfg-if" | ||
| version = "1.0.0" | ||
| source = "registry+https://github.com/rust-lang/crates.io-index" | ||
| checksum = "baf1de4339761588bc0619e3cbc0120ee582ebb74b53b4efbf79117bd2da40fd" | ||
| [[package]] | ||
| name = "clap" | ||
@@ -95,2 +101,8 @@ version = "2.33.3" | ||
| [[package]] | ||
| name = "const_fn" | ||
| version = "0.4.2" | ||
| source = "registry+https://github.com/rust-lang/crates.io-index" | ||
| checksum = "ce90df4c658c62f12d78f7508cf92f9173e5184a539c10bfe54a3107b3ffd0f2" | ||
| [[package]] | ||
| name = "criterion" | ||
@@ -133,8 +145,8 @@ version = "0.3.3" | ||
| name = "crossbeam-channel" | ||
| version = "0.4.4" | ||
| version = "0.5.0" | ||
| source = "registry+https://github.com/rust-lang/crates.io-index" | ||
| checksum = "b153fe7cbef478c567df0f972e02e6d736db11affe43dfc9c56a9374d1adfb87" | ||
| checksum = "dca26ee1f8d361640700bde38b2c37d8c22b3ce2d360e1fc1c74ea4b0aa7d775" | ||
| dependencies = [ | ||
| "cfg-if 1.0.0", | ||
| "crossbeam-utils", | ||
| "maybe-uninit", | ||
| ] | ||
@@ -144,9 +156,9 @@ | ||
| name = "crossbeam-deque" | ||
| version = "0.7.3" | ||
| version = "0.8.0" | ||
| source = "registry+https://github.com/rust-lang/crates.io-index" | ||
| checksum = "9f02af974daeee82218205558e51ec8768b48cf524bd01d550abe5573a608285" | ||
| checksum = "94af6efb46fef72616855b036a624cf27ba656ffc9be1b9a3c931cfc7749a9a9" | ||
| dependencies = [ | ||
| "cfg-if 1.0.0", | ||
| "crossbeam-epoch", | ||
| "crossbeam-utils", | ||
| "maybe-uninit", | ||
| ] | ||
@@ -156,11 +168,10 @@ | ||
| name = "crossbeam-epoch" | ||
| version = "0.8.2" | ||
| version = "0.9.0" | ||
| source = "registry+https://github.com/rust-lang/crates.io-index" | ||
| checksum = "058ed274caafc1f60c4997b5fc07bf7dc7cca454af7c6e81edffe5f33f70dace" | ||
| checksum = "ec0f606a85340376eef0d6d8fec399e6d4a544d648386c6645eb6d0653b27d9f" | ||
| dependencies = [ | ||
| "autocfg", | ||
| "cfg-if", | ||
| "cfg-if 1.0.0", | ||
| "const_fn", | ||
| "crossbeam-utils", | ||
| "lazy_static", | ||
| "maybe-uninit", | ||
| "memoffset", | ||
@@ -172,8 +183,9 @@ "scopeguard", | ||
| name = "crossbeam-utils" | ||
| version = "0.7.2" | ||
| version = "0.8.0" | ||
| source = "registry+https://github.com/rust-lang/crates.io-index" | ||
| checksum = "c3c7c73a2d1e9fc0886a08b93e98eb643461230d5f1925e4036204d5f2e261a8" | ||
| checksum = "ec91540d98355f690a86367e566ecad2e9e579f230230eb7c21398372be73ea5" | ||
| dependencies = [ | ||
| "autocfg", | ||
| "cfg-if", | ||
| "cfg-if 1.0.0", | ||
| "const_fn", | ||
| "lazy_static", | ||
@@ -224,5 +236,5 @@ ] | ||
| name = "hermit-abi" | ||
| version = "0.1.16" | ||
| version = "0.1.17" | ||
| source = "registry+https://github.com/rust-lang/crates.io-index" | ||
| checksum = "4c30f6d0bc6b00693347368a67d41b58f2fb851215ff1da49e90fe2c5c667151" | ||
| checksum = "5aca5565f760fb5b220e499d72710ed156fdb74e631659e99377d9ebfbd13ae8" | ||
| dependencies = [ | ||
@@ -264,5 +276,5 @@ "libc", | ||
| name = "libc" | ||
| version = "0.2.78" | ||
| version = "0.2.80" | ||
| source = "registry+https://github.com/rust-lang/crates.io-index" | ||
| checksum = "aa7087f49d294270db4e1928fc110c976cd4b9e5a16348e0a1df09afa99e6c98" | ||
| checksum = "4d58d1b70b004888f764dfbf6a26a3b0342a1632d33968e4a179d8011c760614" | ||
@@ -275,12 +287,6 @@ [[package]] | ||
| dependencies = [ | ||
| "cfg-if", | ||
| "cfg-if 0.1.10", | ||
| ] | ||
| [[package]] | ||
| name = "maybe-uninit" | ||
| version = "2.0.0" | ||
| source = "registry+https://github.com/rust-lang/crates.io-index" | ||
| checksum = "60302e4db3a61da70c0cb7991976248362f30319e88850c487b9b95bbf059e00" | ||
| [[package]] | ||
| name = "memchr" | ||
@@ -357,11 +363,11 @@ version = "2.3.3" | ||
| name = "radium" | ||
| version = "0.5.1" | ||
| version = "0.5.3" | ||
| source = "registry+https://github.com/rust-lang/crates.io-index" | ||
| checksum = "5a333b5f6adeff5a89f2e95dc2ea1ecb5319abbb56212afea6a37f87435338a5" | ||
| checksum = "941ba9d78d8e2f7ce474c015eea4d9c6d25b6a3327f9832ee29a4de27f91bbb8" | ||
| [[package]] | ||
| name = "rayon" | ||
| version = "1.4.1" | ||
| version = "1.5.0" | ||
| source = "registry+https://github.com/rust-lang/crates.io-index" | ||
| checksum = "dcf6960dc9a5b4ee8d3e4c5787b4a112a8818e0290a42ff664ad60692fdf2032" | ||
| checksum = "8b0d8e0819fadc20c74ea8373106ead0600e3a67ef1fe8da56e39b9ae7275674" | ||
| dependencies = [ | ||
@@ -376,5 +382,5 @@ "autocfg", | ||
| name = "rayon-core" | ||
| version = "1.8.1" | ||
| version = "1.9.0" | ||
| source = "registry+https://github.com/rust-lang/crates.io-index" | ||
| checksum = "e8c4fec834fb6e6d2dd5eece3c7b432a52f0ba887cf40e595190c4107edc08bf" | ||
| checksum = "9ab346ac5921dc62ffa9f89b7a773907511cdfa5490c572ae9be1be33e8afa4a" | ||
| dependencies = [ | ||
@@ -390,5 +396,5 @@ "crossbeam-channel", | ||
| name = "regex" | ||
| version = "1.3.9" | ||
| version = "1.4.1" | ||
| source = "registry+https://github.com/rust-lang/crates.io-index" | ||
| checksum = "9c3780fcf44b193bc4d09f36d2a3c87b251da4a046c87795a0d35f4f927ad8e6" | ||
| checksum = "8963b85b8ce3074fecffde43b4b0dded83ce2f367dc8d363afc56679f3ee820b" | ||
| dependencies = [ | ||
@@ -409,5 +415,5 @@ "regex-syntax", | ||
| name = "regex-syntax" | ||
| version = "0.6.18" | ||
| version = "0.6.20" | ||
| source = "registry+https://github.com/rust-lang/crates.io-index" | ||
| checksum = "26412eb97c6b088a6997e05f69403a802a92d520de2f8e63c2b65f9e0f47c4e8" | ||
| checksum = "8cab7a364d15cde1e505267766a2d3c4e22a843e1a601f0fa7564c0f82ced11c" | ||
@@ -461,5 +467,5 @@ [[package]] | ||
| name = "serde" | ||
| version = "1.0.116" | ||
| version = "1.0.117" | ||
| source = "registry+https://github.com/rust-lang/crates.io-index" | ||
| checksum = "96fe57af81d28386a513cbc6858332abc6117cfdb5999647c6444b8f43a370a5" | ||
| checksum = "b88fa983de7720629c9387e9f517353ed404164b1e482c970a90c1a4aaf7dc1a" | ||
@@ -478,5 +484,5 @@ [[package]] | ||
| name = "serde_derive" | ||
| version = "1.0.116" | ||
| version = "1.0.117" | ||
| source = "registry+https://github.com/rust-lang/crates.io-index" | ||
| checksum = "f630a6370fd8e457873b4bd2ffdae75408bc291ba72be773772a4c2a065d9ae8" | ||
| checksum = "cbd1ae72adb44aab48f325a02444a5fc079349a8d804c1fc922aed3f7454c74e" | ||
| dependencies = [ | ||
@@ -490,5 +496,5 @@ "proc-macro2", | ||
| name = "serde_json" | ||
| version = "1.0.57" | ||
| version = "1.0.59" | ||
| source = "registry+https://github.com/rust-lang/crates.io-index" | ||
| checksum = "164eacbdb13512ec2745fb09d51fd5b22b0d65ed294a1dcf7285a360c80a675c" | ||
| checksum = "dcac07dbffa1c65e7f816ab9eba78eb142c6d44410f4eeba1e26e4f5dfa56b95" | ||
| dependencies = [ | ||
@@ -502,5 +508,5 @@ "itoa", | ||
| name = "serde_test" | ||
| version = "1.0.116" | ||
| version = "1.0.117" | ||
| source = "registry+https://github.com/rust-lang/crates.io-index" | ||
| checksum = "923edec3f1ab4a2f489f384e117dc4f826fd977a9d189b28717cba8474dd5c6b" | ||
| checksum = "d9a49e2f787c0fddfd5e758cbbd3cbf81c3a8d12ef091283c52d9e9b4d417d3c" | ||
| dependencies = [ | ||
@@ -518,5 +524,5 @@ "serde", | ||
| name = "syn" | ||
| version = "1.0.42" | ||
| version = "1.0.48" | ||
| source = "registry+https://github.com/rust-lang/crates.io-index" | ||
| checksum = "9c51d92969d209b54a98397e1b91c8ae82d8c87a7bb87df0b29aa2ad81454228" | ||
| checksum = "cc371affeffc477f42a221a1e4297aedcea33d47d19b61455588bd9d8f6b19ac" | ||
| dependencies = [ | ||
@@ -582,3 +588,3 @@ "proc-macro2", | ||
| dependencies = [ | ||
| "cfg-if", | ||
| "cfg-if 0.1.10", | ||
| "wasm-bindgen-macro", | ||
@@ -585,0 +591,0 @@ ] |
+1
-1
@@ -16,3 +16,3 @@ # THIS FILE IS AUTOMATICALLY GENERATED BY CARGO | ||
| name = "bitvec" | ||
| version = "0.19.3" | ||
| version = "0.19.4" | ||
| authors = ["myrrlyn <self@myrrlyn.dev>"] | ||
@@ -19,0 +19,0 @@ include = ["Cargo.toml", "src/**/*.rs", "benches/*.rs"] |
+17
-1
@@ -5,3 +5,7 @@ //! Unit tests for the `slice` module. | ||
| use crate::prelude::*; | ||
| use crate::{ | ||
| index::BitIdx, | ||
| pointer::BitPtr, | ||
| prelude::*, | ||
| }; | ||
@@ -201,2 +205,14 @@ #[test] | ||
| assert_eq!(data, 0b1111_0000u8); | ||
| let data = 0u8; | ||
| let bits = data.view_bits::<Lsb0>(); | ||
| let base = bits.as_slice().as_ptr(); | ||
| let base_ptr = unsafe { BitPtr::new_unchecked(base, BitIdx::ZERO, 0) }; | ||
| let next_ptr = | ||
| unsafe { BitPtr::new_unchecked(base.add(1), BitIdx::ZERO, 0) }; | ||
| let (l, _) = bits.split_at(0); | ||
| let (_, r) = bits.split_at(8); | ||
| let (l_ptr, r_ptr) = (l.bitptr(), r.bitptr()); | ||
| assert_eq!(l_ptr, base_ptr); | ||
| assert_eq!(r_ptr, next_ptr); | ||
| } | ||
@@ -203,0 +219,0 @@ |
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is too big to display
Sorry, the diff of this file is too big to display