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 |
|---|---|---|---|---|---|---|---|
a973884b94d2829a257d3ea4723759253ccf7e60 | Tony Arcieri | 2019-08-12T22:01:08 | Fix broken Cargo feature attributes
Several things were gated under `cargo_feature` attributes, which don't
appear to do anything. Because of it, much of it was broken/untested. | diff --git a/chacha20/src/lib.rs b/chacha20/src/lib.rs
index 513aeee..47c3f1c 100644
--- a/chacha20/src/lib.rs
+++ b/chacha20/src/lib.rs
@@ -3,14 +3,14 @@ extern crate block_cipher_trait;
extern crate salsa20_core;
extern crate stream_cipher;
-#[cfg(cargo_feature = "zeroize")]
+#[cfg(feature = "zeroize")]
extern c... | 4 | 13 | 13 |
ab367587ad70c21876512000ecb795408d29feae | Tony Arcieri | 2019-08-12T20:19:54 | Add #[ignore] attribute to tests that take excessively long
The `salsa20_offsets` and `chacha20_offsets` take an excessively long
time to run (over a minute... I didn't bother to see how long they
actually take because I got bored), slowing down both development and
CI times.
Adding an `#[ignore]` attribute allows th... | diff --git a/chacha20/tests/chacha20.rs b/chacha20/tests/chacha20.rs
index e1fd05e..d844791 100644
--- a/chacha20/tests/chacha20.rs
+++ b/chacha20/tests/chacha20.rs
@@ -313,6 +313,7 @@ fn chacha20_long() {
}
#[test]
+#[ignore]
fn chacha20_offsets() {
for idx in 0..256 {
for middle in idx..256 {
diff ... | 2 | 2 | 0 |
01688aec1cebee9b69d56a7f2a619b030e3ead5c | Eric McCorkle | 2019-08-02T01:17:34 | Set zeroize version | diff --git a/hc-256/Cargo.toml b/hc-256/Cargo.toml
index 8e00520..4d462bb 100644
--- a/hc-256/Cargo.toml
+++ b/hc-256/Cargo.toml
@@ -11,7 +11,7 @@ categories = ["cryptography", "no-std"]
[dependencies]
block-cipher-trait = "0.6"
stream-cipher = "0.3"
-zeroize = { version = "0.8", optional = true }
+zeroize = { versi... | 1 | 1 | 1 |
d3304b1af6d280cb140eb709e5f794170972dff9 | newpavlov | 2019-07-30T21:56:06 | bump salsa20 version | diff --git a/salsa20/Cargo.toml b/salsa20/Cargo.toml
index 5bfe08f..16f24cc 100644
--- a/salsa20/Cargo.toml
+++ b/salsa20/Cargo.toml
@@ -1,6 +1,6 @@
[package]
name = "salsa20"
-version = "0.1.0"
+version = "0.1.1"
authors = ["RustCrypto Developers"]
license = "MIT OR Apache-2.0"
description = "Salsa20 Stream Ciphe... | 1 | 1 | 1 |
44d74c98e411b731a9c41bf3e99833e4240d7592 | Stefan Seemayer | 2019-06-30T10:58:28 | add another test from RFC 7539 appendix A.2 | diff --git a/chacha20/tests/chacha20.rs b/chacha20/tests/chacha20.rs
index 63b1604..e1fd05e 100644
--- a/chacha20/tests/chacha20.rs
+++ b/chacha20/tests/chacha20.rs
@@ -29,6 +29,12 @@ const IETF_KEY1: [u8; KEY_BYTES] = [
0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x01... | 1 | 63 | 0 |
ebc847968d633d4fd243349e657e630222cf2084 | Stefan Seemayer | 2019-06-29T21:53:32 | Add test vectors 1 - 3 from RFC 7539 section A.1 | diff --git a/chacha20/tests/chacha20.rs b/chacha20/tests/chacha20.rs
index 090730d..63b1604 100644
--- a/chacha20/tests/chacha20.rs
+++ b/chacha20/tests/chacha20.rs
@@ -2,7 +2,10 @@ extern crate block_cipher_trait;
extern crate chacha20;
extern crate stream_cipher;
-use block_cipher_trait::generic_array::{typenum::... | 1 | 84 | 1 |
49692371fd5e6fd292e29e9aeafe293c34bcfed6 | Stefan Seemayer | 2019-06-29T21:19:10 | chacha20: add support for rfc 7539 12-byte nonces | diff --git a/chacha20/src/lib.rs b/chacha20/src/lib.rs
index 5abe553..513aeee 100644
--- a/chacha20/src/lib.rs
+++ b/chacha20/src/lib.rs
@@ -6,7 +6,7 @@ extern crate stream_cipher;
#[cfg(cargo_feature = "zeroize")]
extern crate zeroize;
-use block_cipher_trait::generic_array::typenum::{U32, U8};
+use block_cipher_t... | 1 | 42 | 1 |
5ec378eb645b5a582ae76386ed36f06b384aeb45 | Stefan Seemayer | 2019-06-29T21:17:51 | make ChaCha20 and ChaChaState generic over nonce size | diff --git a/chacha20/src/lib.rs b/chacha20/src/lib.rs
index 3281dfa..5abe553 100644
--- a/chacha20/src/lib.rs
+++ b/chacha20/src/lib.rs
@@ -7,7 +7,7 @@ extern crate stream_cipher;
extern crate zeroize;
use block_cipher_trait::generic_array::typenum::{U32, U8};
-use block_cipher_trait::generic_array::GenericArray;
... | 2 | 22 | 19 |
5486e3cf3ccfa2248bbb4a43cc6881bcd3eafe4f | Tony Arcieri | 2019-06-25T17:26:49 | salsa20: add #![no_std] directive | diff --git a/salsa20/src/lib.rs b/salsa20/src/lib.rs
index a387e36..f7f47b8 100644
--- a/salsa20/src/lib.rs
+++ b/salsa20/src/lib.rs
@@ -1,3 +1,5 @@
+#![no_std]
+
extern crate block_cipher_trait;
extern crate salsa20_core;
extern crate stream_cipher; | 1 | 2 | 0 |
897ad6ee7a7c1ca10ae1932451faf1d29e67b806 | Stefan Seemayer | 2019-06-23T19:09:16 | use version and path fallback for references to salsa20-core | diff --git a/chacha20/Cargo.toml b/chacha20/Cargo.toml
index f8aca00..edcdde5 100644
--- a/chacha20/Cargo.toml
+++ b/chacha20/Cargo.toml
@@ -11,7 +11,7 @@ categories = ["cryptography", "no-std"]
[dependencies]
block-cipher-trait = "0.6"
stream-cipher = "0.3"
-salsa20-core = { path = "../salsa20-core" }
+salsa20-core... | 2 | 2 | 2 |
59a8e9adab179f3f63dd40ed07babbdc0ec5dc75 | Stefan Seemayer | 2019-06-23T18:00:47 | make test names match naming conventions | diff --git a/chacha20/tests/chacha20.rs b/chacha20/tests/chacha20.rs
index d4709ec..4fc306c 100644
--- a/chacha20/tests/chacha20.rs
+++ b/chacha20/tests/chacha20.rs
@@ -94,7 +94,7 @@ const EXPECTED_LONG: [u8; 256] = [
];
#[test]
-fn chacha20_IETF_KEY0_IV0() {
+fn chacha20_ietf_key0_iv0() {
let mut cipher = Cha... | 2 | 9 | 9 |
9e52d49ac2af398446d8a28d110799a2f8093949 | Stefan Seemayer | 2019-06-23T17:53:35 | fix imports | diff --git a/Cargo.toml b/Cargo.toml
index ad405f2..36e2705 100644
--- a/Cargo.toml
+++ b/Cargo.toml
@@ -7,5 +7,5 @@ members = [
"ctr",
"ofb",
"salsa20",
- "salsa20-family",
+ "salsa20-core",
]
diff --git a/chacha20/Cargo.toml b/chacha20/Cargo.toml
index 114ba35..f8aca00 100644
--- a/chacha20/Carg... | 8 | 201 | 393 |
a532d4454ce41844e98184c54173d312a3485760 | Tony Arcieri | 2019-06-18T19:23:16 | salsa20-family: Upgrade to zeroize v0.9 | diff --git a/salsa20-family/Cargo.toml b/salsa20-family/Cargo.toml
index 304ead0..eb1edf6 100644
--- a/salsa20-family/Cargo.toml
+++ b/salsa20-family/Cargo.toml
@@ -11,7 +11,7 @@ categories = ["cryptography", "no-std"]
[dependencies]
block-cipher-trait = "0.6"
stream-cipher = "0.3"
-zeroize = { version = "0.8", opti... | 1 | 1 | 1 |
fa1a3230fb986d774960f233fead0b7da8d0dc53 | Eric McCorkle | 2019-05-22T10:25:48 | Fix crate names, fix zeroize version | diff --git a/salsa-family/Cargo.toml b/salsa-family/Cargo.toml
index 022f8dc..44d88a5 100644
--- a/salsa-family/Cargo.toml
+++ b/salsa-family/Cargo.toml
@@ -1,5 +1,5 @@
[package]
-name = "salsa-family"
+name = "salsa-ciphers"
version = "0.1.0"
authors = ["Eric McCorkle <eric@metricspace.net>"]
license = "MIT OR Apa... | 3 | 6 | 6 |
b71cf742112a1c62904fcdfaeabed0db5f7ccf30 | Eric McCorkle | 2019-04-11T13:34:21 | Add drop implementation that calls zeroize | diff --git a/salsa/src/salsa_family_state.rs b/salsa/src/salsa_family_state.rs
index 75fc71d..9090f8f 100644
--- a/salsa/src/salsa_family_state.rs
+++ b/salsa/src/salsa_family_state.rs
@@ -6,6 +6,8 @@ use stream_cipher::SyncStreamCipherSeek;
#[cfg(cargo_feature = "zeroize")]
use zeroize::Zeroize;
+#[cfg(cargo_featu... | 1 | 9 | 0 |
32381a2d1e9426f3114ed6f71d014d268540b170 | Eric McCorkle | 2019-04-11T12:24:32 | Make zeroize optional | diff --git a/salsa/Cargo.toml b/salsa/Cargo.toml
index 4c51630..abc7aee 100644
--- a/salsa/Cargo.toml
+++ b/salsa/Cargo.toml
@@ -11,7 +11,7 @@ categories = ["cryptography", "no-std"]
[dependencies]
block-cipher-trait = "0.6"
stream-cipher = "0.3"
-zeroize = "*"
+zeroize = { version = "*", optional = true }
[dev-d... | 5 | 14 | 1 |
8572ba43be9d6a3b12091a7eb3bfd5fcd97a5fb7 | Eric McCorkle | 2019-03-31T11:55:17 | Add tests, fix failures | diff --git a/salsa/src/chacha.rs b/salsa/src/chacha.rs
index 4d9176c..29b92c7 100644
--- a/salsa/src/chacha.rs
+++ b/salsa/src/chacha.rs
@@ -1,4 +1,5 @@
use block_cipher_trait::generic_array::GenericArray;
+use block_cipher_trait::generic_array::typenum::U8;
use block_cipher_trait::generic_array::typenum::U32;
use s... | 6 | 701 | 62 |
d59145d8bb100bf077274bc5e5ae8155f2472e35 | newpavlov | 2019-03-11T13:55:04 | implement StreamCipher::new_var via BlockCipher::new_varkey | diff --git a/cfb-mode/Cargo.toml b/cfb-mode/Cargo.toml
index cc86d56..69df706 100644
--- a/cfb-mode/Cargo.toml
+++ b/cfb-mode/Cargo.toml
@@ -1,6 +1,6 @@
[package]
name = "cfb-mode"
-version = "0.3.1"
+version = "0.3.2"
authors = ["RustCrypto Developers"]
license = "MIT OR Apache-2.0"
description = "Generic Cipher ... | 8 | 54 | 8 |
34388504f146dc8602dd789aa5737fa22211e338 | newpavlov | 2018-12-07T12:24:42 | add from_cipher test, deduplicate code, minor changes | diff --git a/ctr/Cargo.toml b/ctr/Cargo.toml
index c2564bd..ca09f2a 100644
--- a/ctr/Cargo.toml
+++ b/ctr/Cargo.toml
@@ -1,6 +1,6 @@
[package]
name = "ctr"
-version = "0.3.0"
+version = "0.3.1"
authors = ["RustCrypto Developers"]
license = "MIT OR Apache-2.0"
description = "CTR block mode of operation"
@@ -16,6 +1... | 3 | 42 | 33 |
4557ce8b306f4f043df3c120a574814bb41d950c | James McGlashan | 2018-12-07T00:00:00 | add "from_cipher" to ctr128 | diff --git a/ctr/src/lib.rs b/ctr/src/lib.rs
index 679950c..242b2f5 100644
--- a/ctr/src/lib.rs
+++ b/ctr/src/lib.rs
@@ -74,6 +74,32 @@ pub struct Ctr128<C>
pos: Option<u8>,
}
+impl<C> Ctr128<C>
+ where
+ C: BlockCipher<BlockSize = U16>,
+ C::ParBlocks: ArrayLength<GenArr<u8, U16>>,
+{
+ pub... | 1 | 26 | 0 |
2b718d5f1a5306aaf56ce172abbd408261fbe9a1 | Артём Павлов [Artyom Pavlov] | 2018-11-01T21:13:35 | docs.rs fix | diff --git a/cfb-mode/Cargo.toml b/cfb-mode/Cargo.toml
index ab88ab1..cc86d56 100644
--- a/cfb-mode/Cargo.toml
+++ b/cfb-mode/Cargo.toml
@@ -1,6 +1,6 @@
[package]
name = "cfb-mode"
-version = "0.3.0"
+version = "0.3.1"
authors = ["RustCrypto Developers"]
license = "MIT OR Apache-2.0"
description = "Generic Cipher ... | 2 | 2 | 8 |
7cfc10e9b7f7ea9849dd6d4dde24d1d12ac6a30f | newpavlov | 2018-11-01T14:04:07 | use ctr from crates.io | diff --git a/aes-ctr/Cargo.toml b/aes-ctr/Cargo.toml
index 0627734..4079d96 100644
--- a/aes-ctr/Cargo.toml
+++ b/aes-ctr/Cargo.toml
@@ -13,8 +13,7 @@ categories = ["cryptography", "no-std"]
stream-cipher = "0.3"
[target.'cfg(not(all(target_feature = "aes", target_feature = "sse2", target_feature = "ssse3", any(tar... | 1 | 1 | 2 |
7f9ef0e71b0256619b2628c990fc556be0137295 | newpavlov | 2018-11-01T10:52:37 | use OR in license fields | diff --git a/aes-ctr/Cargo.toml b/aes-ctr/Cargo.toml
index 871cd26..8c6489b 100644
--- a/aes-ctr/Cargo.toml
+++ b/aes-ctr/Cargo.toml
@@ -2,7 +2,7 @@
name = "aes-ctr"
version = "0.2.0"
authors = ["RustCrypto Developers"]
-license = "MIT/Apache-2.0"
+license = "MIT OR Apache-2.0"
description = "AES-CTR stream ciphers... | 3 | 3 | 3 |
64af09b7c42ea728a372f437bbcea11408cd0156 | Артём Павлов [Artyom Pavlov] | 2018-10-13T18:20:54 | update cfb dependencies | diff --git a/cfb-mode/Cargo.toml b/cfb-mode/Cargo.toml
index eb9d2e1..d70cb19 100644
--- a/cfb-mode/Cargo.toml
+++ b/cfb-mode/Cargo.toml
@@ -1,6 +1,6 @@
[package]
name = "cfb-mode"
-version = "0.1.0"
+version = "0.2.0"
authors = ["RustCrypto Developers"]
license = "MIT/Apache-2.0"
description = "Generic Cipher Fee... | 1 | 3 | 3 |
b40f56306a6549fd228264715bec223573201624 | Артём Павлов [Artyom Pavlov] | 2018-10-13T17:58:53 | patch transmute_copy bug | diff --git a/ctr/Cargo.toml b/ctr/Cargo.toml
index 297396a..e71c9ef 100644
--- a/ctr/Cargo.toml
+++ b/ctr/Cargo.toml
@@ -1,6 +1,6 @@
[package]
name = "ctr"
-version = "0.1.0"
+version = "0.1.1"
authors = ["RustCrypto Developers"]
license = "MIT/Apache-2.0"
description = "CTR block mode of operation"
diff --git a/c... | 2 | 8 | 3 |
8fea5cb65f34f8ef3310deea100cb07dfae74a17 | Артём Павлов [Artyom Pavlov] | 2018-10-01T02:56:53 | error doc | diff --git a/cfb-mode/src/errors.rs b/cfb-mode/src/errors.rs
index 454898d..0c7cd30 100644
--- a/cfb-mode/src/errors.rs
+++ b/cfb-mode/src/errors.rs
@@ -3,6 +3,7 @@ use core::fmt;
#[cfg(feature = "std")]
use std::error;
+/// Error type used to indicate invalid length of key or IV.
#[derive(Copy, Clone, Debug)]
pu... | 1 | 1 | 0 |
d8efbb66b5b7790c7be7d46a19c7478bed0b8471 | Артём Павлов [Artyom Pavlov] | 2018-10-01T01:29:15 | benches and minor changes | diff --git a/cfb-mode/benches/mod.rs b/cfb-mode/benches/mod.rs
new file mode 100644
index 0000000..311e8c5
--- /dev/null
+++ b/cfb-mode/benches/mod.rs
@@ -0,0 +1,45 @@
+#![feature(test)]
+extern crate test;
+extern crate aes;
+extern crate cfb_mode;
+
+use test::Bencher;
+use cfb_mode::{Cfb};
+use aes::Aes128;
+
+type ... | 2 | 63 | 12 |
d937f5ce917e314d9159d5963ebb627663349251 | Артём Павлов [Artyom Pavlov] | 2018-10-01T01:13:33 | improve unsafe code | diff --git a/cfb-mode/src/lib.rs b/cfb-mode/src/lib.rs
index 2f2e4df..b66345c 100644
--- a/cfb-mode/src/lib.rs
+++ b/cfb-mode/src/lib.rs
@@ -54,7 +54,7 @@ extern crate std;
use block_cipher_trait::BlockCipher;
use block_cipher_trait::generic_array::GenericArray;
use block_cipher_trait::generic_array::typenum::Unsign... | 1 | 5 | 4 |
d8cb14710257eab5e8e6adccba37630fab751b87 | newpavlov | 2018-07-30T10:39:12 | use published ctr crate | diff --git a/aes-ctr/Cargo.toml b/aes-ctr/Cargo.toml
index 8ae40f2..00877e7 100644
--- a/aes-ctr/Cargo.toml
+++ b/aes-ctr/Cargo.toml
@@ -13,7 +13,7 @@ categories = ["cryptography", "no-std"]
stream-cipher = "0.1"
[target.'cfg(not(all(target_feature = "aes", target_feature = "sse2", target_feature = "ssse3", any(tar... | 1 | 1 | 1 |
b1e112d7573d9a2a6ef49732e91d7b2b70f8d1b6 | newpavlov | 2018-07-30T10:13:19 | use published crates | diff --git a/aes-ctr/Cargo.toml b/aes-ctr/Cargo.toml
index d992b98..8ae40f2 100644
--- a/aes-ctr/Cargo.toml
+++ b/aes-ctr/Cargo.toml
@@ -10,14 +10,17 @@ keywords = ["crypto", "stream-cipher", "trait"]
categories = ["cryptography", "no-std"]
[dependencies]
-stream-cipher = { path = "../../traits/stream-cipher" }
+st... | 2 | 12 | 6 |
22ee4dce0c92f9f0a628e5f10ba4065a52bfe77d | newpavlov | 2018-07-27T15:11:01 | description improvement | diff --git a/ctr/Cargo.toml b/ctr/Cargo.toml
index 89f0d76..05b48e9 100644
--- a/ctr/Cargo.toml
+++ b/ctr/Cargo.toml
@@ -3,7 +3,7 @@ name = "ctr"
version = "0.1.0"
authors = ["RustCrypto Developers"]
license = "MIT/Apache-2.0"
-description = "CTR mode which implements stream cipher traits"
+description = "CTR block ... | 1 | 1 | 1 |
ab78bad96ec88d14c986244fd84baeab76e41a32 | newpavlov | 2018-07-27T15:09:56 | documentation, tests and benches imporvements | diff --git a/aes-ctr/Cargo.toml b/aes-ctr/Cargo.toml
index c10523b..d992b98 100644
--- a/aes-ctr/Cargo.toml
+++ b/aes-ctr/Cargo.toml
@@ -18,3 +18,6 @@ aes-soft = "*"
[target.'cfg(all(target_feature = "aes", target_feature = "sse2", target_feature = "ssse3", any(target_arch = "x86_64", target_arch = "x86")))'.depende... | 13 | 141 | 144 |
54649793d1d20d422c999799b0cd703bb881e598 | newpavlov | 2018-07-25T17:44:25 | ctr update | diff --git a/ctr/src/lib.rs b/ctr/src/lib.rs
index 9f17360..9369b1c 100644
--- a/ctr/src/lib.rs
+++ b/ctr/src/lib.rs
@@ -9,7 +9,7 @@ use stream_cipher::{
use block_cipher_trait::generic_array::{ArrayLength, GenericArray as GenArr};
use block_cipher_trait::generic_array::typenum::{U16, Unsigned};
use block_cipher_tra... | 1 | 10 | 14 |
8cd5639aae681f9b9719d4867a7414dcfbc157b0 | newpavlov | 2018-07-25T10:08:35 | improve counter overflow check | diff --git a/ctr/src/lib.rs b/ctr/src/lib.rs
index 7d06ae0..9f17360 100644
--- a/ctr/src/lib.rs
+++ b/ctr/src/lib.rs
@@ -215,7 +215,9 @@ impl<C> Ctr128<C>
fn check_data_len(&self, data: &[u8]) -> Result<(), LoopError> {
debug_assert_eq!(self.pos, None);
- let data_blocks = data.len() / Self::bloc... | 1 | 3 | 1 |
d5159c47bc31f441e35460b4ec24bc737db9cb24 | newpavlov | 2018-07-25T10:05:32 | add debug assert | diff --git a/ctr/src/lib.rs b/ctr/src/lib.rs
index 6ac4313..7d06ae0 100644
--- a/ctr/src/lib.rs
+++ b/ctr/src/lib.rs
@@ -214,6 +214,7 @@ impl<C> Ctr128<C>
}
fn check_data_len(&self, data: &[u8]) -> Result<(), LoopError> {
+ debug_assert_eq!(self.pos, None);
let data_blocks = data.len() / Sel... | 1 | 1 | 0 |
ab9c26daec0bc98cf32b74a4340dd2b559f0d405 | newpavlov | 2018-07-25T10:00:42 | fix seek | diff --git a/ctr/src/lib.rs b/ctr/src/lib.rs
index 662f3b3..6ac4313 100644
--- a/ctr/src/lib.rs
+++ b/ctr/src/lib.rs
@@ -162,6 +162,7 @@ impl<C> StreamCipherSeek for Ctr128<C>
self.pos = None;
} else {
self.counter = n.wrapping_add(1);
+ self.block = self.generate_block(n)... | 1 | 1 | 0 |
ac05967d8a0bce98caf66653c81eec891bc3d51e | newpavlov | 2018-07-25T09:55:57 | ctr improvement | diff --git a/ctr/benches/mod.rs b/ctr/benches/mod.rs
index 476c2ca..cd06768 100644
--- a/ctr/benches/mod.rs
+++ b/ctr/benches/mod.rs
@@ -5,10 +5,10 @@ extern crate aes;
extern crate test;
extern crate stream_cipher;
-use aes::Aes128;
-use stream_cipher::StreamCipherCore;
+use stream_cipher::{StreamCipherCore, NewFi... | 3 | 109 | 58 |
c1882c07412efbed9e9215734160c6d248188831 | newpavlov | 2018-07-24T16:58:11 | ctr update | diff --git a/aes-ctr/tests/mod.rs b/aes-ctr/tests/mod.rs
index ef0329d..4bbedef 100644
--- a/aes-ctr/tests/mod.rs
+++ b/aes-ctr/tests/mod.rs
@@ -2,8 +2,8 @@
extern crate aes_ctr;
use aes_ctr::{Aes128Ctr, Aes256Ctr};
-use aes_ctr::stream_cipher::StreamCipherCore;
use aes_ctr::stream_cipher::generic_array::GenericAr... | 3 | 99 | 80 |
3259a16867836ab7259d5718f423d8d6edd02ddc | newpavlov | 2018-07-24T12:27:57 | reformatting | diff --git a/aes-ctr/src/lib.rs b/aes-ctr/src/lib.rs
index 386f7d3..9877c64 100644
--- a/aes-ctr/src/lib.rs
+++ b/aes-ctr/src/lib.rs
@@ -1,17 +1,32 @@
#![no_std]
pub extern crate stream_cipher;
-#[cfg(not(all(target_feature = "aes", target_feature = "sse2", target_feature = "ssse3", any(target_arch = "x86_64", target... | 1 | 22 | 7 |
9563d70cbda2db509ff53a97344201b52cf9cdaa | newpavlov | 2018-07-23T17:07:49 | re-export stream-cipher crate | diff --git a/ctr/src/lib.rs b/ctr/src/lib.rs
index a5de452..c84f87b 100644
--- a/ctr/src/lib.rs
+++ b/ctr/src/lib.rs
@@ -1,5 +1,5 @@
#![no_std]
-extern crate stream_cipher;
+pub extern crate stream_cipher;
extern crate block_cipher_trait;
use stream_cipher::StreamCipherCore; | 1 | 1 | 1 |
a320e6be2fe484a3a89b60936106174aefd78efc | Taiki Endo | 2026-01-22T16:23:07 | Update windows-sys to 0.61 | diff --git a/opener/Cargo.toml b/opener/Cargo.toml
index f1426cd..2c0f6a9 100644
--- a/opener/Cargo.toml
+++ b/opener/Cargo.toml
@@ -28,7 +28,7 @@ url = { version = "2", optional = true }
[target.'cfg(windows)'.dependencies]
normpath = "1"
-windows-sys = { version = "0.60", features = [
+windows-sys = { version = "... | 1 | 1 | 1 |
cb50adb5e903ac09ff05c516d0d7e59da130fed3 | Daniel Paoliello | 2025-09-03T17:32:50 | Bump windows-sys to 0.60 | diff --git a/opener/Cargo.toml b/opener/Cargo.toml
index 992f2b6..9631e45 100644
--- a/opener/Cargo.toml
+++ b/opener/Cargo.toml
@@ -28,7 +28,7 @@ url = { version = "2", optional = true }
[target.'cfg(windows)'.dependencies]
normpath = "1"
-windows-sys = { version = "0.59", features = [
+windows-sys = { version = "... | 1 | 1 | 1 |
f365c44ca166f2613fb13407d3e3d5d7a0909249 | Brian Bowman | 2025-05-28T08:14:28 | Optimize `windows-sys` Cargo features | diff --git a/opener/Cargo.toml b/opener/Cargo.toml
index 7259f55..fa2f86e 100644
--- a/opener/Cargo.toml
+++ b/opener/Cargo.toml
@@ -14,7 +14,12 @@ license = "MIT OR Apache-2.0"
maintenance = { status = "passively-maintained" }
[features]
-reveal = ["dep:url", "dep:zbus", "windows-sys/Win32_System_Com"]
+reveal = [... | 1 | 6 | 3 |
9cc44bc00ebe8e36fe91f904cd6c8c2d0996d315 | Brian Bowman | 2025-05-25T12:31:08 | Fix clippy lint on Windows | diff --git a/opener/src/windows.rs b/opener/src/windows.rs
index d74a0c0..1968953 100644
--- a/opener/src/windows.rs
+++ b/opener/src/windows.rs
@@ -48,7 +48,7 @@ pub(crate) fn open_helper(path: &OsStr) -> Result<(), OpenError> {
fn convert_path(path: &OsStr) -> io::Result<Vec<u16>> {
let mut maybe_result: Vec<... | 1 | 1 | 1 |
deb3733efd96b01e54dcc70fe8c0639b259e49b0 | 파링 | 2025-05-28T07:39:34 | Migrate to `windows-sys`-provided shell function declarations (#37) | diff --git a/opener/Cargo.toml b/opener/Cargo.toml
index b8dcb90..7259f55 100644
--- a/opener/Cargo.toml
+++ b/opener/Cargo.toml
@@ -26,6 +26,7 @@ normpath = "1"
windows-sys = { version = "0.59", features = [
"Win32_Foundation",
"Win32_UI_Shell",
+ "Win32_UI_Shell_Common",
"Win32_UI_WindowsAndMessagi... | 2 | 3 | 32 |
4bc8299a863cbddca7ef5b42f143928454b8a15c | Brian Bowman | 2025-05-21T11:23:35 | Fix outdated docs | diff --git a/opener/src/lib.rs b/opener/src/lib.rs
index f863e15..972660c 100644
--- a/opener/src/lib.rs
+++ b/opener/src/lib.rs
@@ -20,12 +20,7 @@
//!
//! # Crate features
//!
-//! - **reveal** - Enables usage of the [`reveal`] function. On Linux this will pull in the
-//! [`dbus`](https://docs.rs/dbus) crate. If... | 1 | 1 | 6 |
2e7c01b91984e50b55fcc9a4e3576b546c9062bb | Zeeshan Ali Khan | 2025-05-17T11:01:07 | Switch from dbus-rs to zbus | diff --git a/opener/Cargo.toml b/opener/Cargo.toml
index 42a2b31..77ece73 100644
--- a/opener/Cargo.toml
+++ b/opener/Cargo.toml
@@ -14,21 +14,19 @@ license = "MIT OR Apache-2.0"
maintenance = { status = "passively-maintained" }
[features]
-default = ["dbus-vendored"]
-reveal = ["dep:url", "dep:dbus", "windows-sys/... | 2 | 44 | 41 |
edf5d9dc16b5d41920effa1e1838f98c242fda69 | Brian Bowman | 2025-05-17T06:55:57 | Fix clippy lints | diff --git a/opener/src/freedesktop.rs b/opener/src/freedesktop.rs
index 02b3d52..1a471b5 100644
--- a/opener/src/freedesktop.rs
+++ b/opener/src/freedesktop.rs
@@ -78,7 +78,7 @@ fn uri_to_open_error() -> OpenError {
}
fn dbus_to_open_error(error: dbus::Error) -> OpenError {
- OpenError::Io(io::Error::new(io::Er... | 2 | 4 | 5 |
69125270809d4b4d4c41de759224d618fc083023 | Taiki Endo | 2024-08-05T17:19:53 | Update windows-sys to 0.59 | diff --git a/opener/Cargo.toml b/opener/Cargo.toml
index e33be09..c932e59 100644
--- a/opener/Cargo.toml
+++ b/opener/Cargo.toml
@@ -25,7 +25,7 @@ url = { version = "2", optional = true }
[target.'cfg(windows)'.dependencies]
normpath = "1"
-windows-sys = { version = "0.52", features = [
+windows-sys = { version = "... | 2 | 3 | 3 |
b6ead409a9a60f7a2705cf5f2be167719959440e | Jonas Dahlbæk | 2024-05-17T19:42:59 | Workaround for https://github.com/rust-lang/cargo/issues/10788
As described in Cargo Issue 10788, until Rust 1.71 there were
cases where the dependency/feature syntax would not work correctly
when used in combination with the dep:dependency syntax. Workarounds
include adding an explicit feature
dependency = ["dep:dep... | diff --git a/opener/Cargo.toml b/opener/Cargo.toml
index ac9e85b..271b879 100644
--- a/opener/Cargo.toml
+++ b/opener/Cargo.toml
@@ -16,7 +16,7 @@ maintenance = { status = "passively-maintained" }
[features]
default = ["dbus-vendored"]
reveal = ["dep:url", "dep:dbus", "windows-sys/Win32_System_Com"]
-dbus-vendored =... | 1 | 1 | 1 |
402406ef18f0c9e89933a5392d9566abaa678f92 | Brian Bowman | 2024-03-22T07:20:53 | Refactor `windows::reveal` module
This also fixes `ILFree()` not being called if `SHOpenFolderAndSelectItems()` fails. | diff --git a/opener/src/windows/reveal.rs b/opener/src/windows/reveal.rs
index 0d47605..4488bb9 100644
--- a/opener/src/windows/reveal.rs
+++ b/opener/src/windows/reveal.rs
@@ -8,28 +8,6 @@ use std::{io, ptr, thread};
use windows_sys::core::{HRESULT, PCWSTR};
use windows_sys::Win32::System::Com::{CoInitializeEx, CoUn... | 1 | 44 | 53 |
a32eba0c3e02766b61798f273b0325a295710564 | Brian Bowman | 2024-03-22T05:37:35 | Switch to `windows-sys` | diff --git a/opener/Cargo.toml b/opener/Cargo.toml
index 2d26d6d..f2dc3c5 100644
--- a/opener/Cargo.toml
+++ b/opener/Cargo.toml
@@ -15,7 +15,7 @@ maintenance = { status = "passively-maintained" }
[features]
default = ["dbus-vendored"]
-reveal = ["dep:url", "dep:dbus", "winapi/shtypes", "winapi/objbase"]
+reveal = ... | 3 | 37 | 17 |
bf30ec166869d18b6cab209d164d7c2c641bbfe6 | Brian Bowman | 2024-03-01T09:19:26 | Remove outdated crate badges | diff --git a/opener/Cargo.toml b/opener/Cargo.toml
index 3c1a2e6..2d26d6d 100644
--- a/opener/Cargo.toml
+++ b/opener/Cargo.toml
@@ -11,8 +11,6 @@ categories = ["os"]
license = "MIT OR Apache-2.0"
[badges]
-appveyor = { repository = "Seeker14491/opener", branch = "master", service = "github" }
-travis-ci = { reposi... | 1 | 0 | 2 |
bbfa7cca4379d227a3600a9f070aeef72e7ce4bc | Brian Bowman | 2024-03-01T09:10:34 | Update crates to 2021 edition | diff --git a/Cargo.toml b/Cargo.toml
index b505c17..396d886 100644
--- a/Cargo.toml
+++ b/Cargo.toml
@@ -1,2 +1,3 @@
[workspace]
members = ["opener", "opener-bin"]
+resolver = "2"
diff --git a/opener-bin/Cargo.toml b/opener-bin/Cargo.toml
index c275432..f1a146d 100644
--- a/opener-bin/Cargo.toml
+++ b/opener-bin/Carg... | 3 | 4 | 3 |
474f93b75ca3ea6a3c50fe7c9dbe293fd0a18d40 | Brian Bowman | 2023-03-22T23:41:17 | Fix opening web links with wslview
Fixes #19 | diff --git a/opener/src/linux_and_more.rs b/opener/src/linux_and_more.rs
index f9dda5b..e9bcd02 100644
--- a/opener/src/linux_and_more.rs
+++ b/opener/src/linux_and_more.rs
@@ -55,13 +55,6 @@ fn non_wsl_open(path: &OsStr) -> Result<(), OpenError> {
}
fn open_with_wslview(path: &OsStr) -> io::Result<Child> {
- le... | 1 | 0 | 7 |
a130265a16b76344ebfb4b976cdee0b149151947 | Brian Bowman | 2023-03-20T03:55:43 | Drop `dunce` dep | diff --git a/opener/Cargo.toml b/opener/Cargo.toml
index 403ab8d..a398b72 100644
--- a/opener/Cargo.toml
+++ b/opener/Cargo.toml
@@ -19,7 +19,6 @@ maintenance = { status = "passively-maintained" }
reveal = [
"dep:url",
"dep:dbus",
- "dep:dunce",
"winapi/shtypes",
"winapi/objbase",
]
@@ -35,7 +3... | 2 | 3 | 4 |
3b48ee084300ba883bed11259d978fa989ffaed8 | Brian Bowman | 2023-03-20T03:38:12 | Improve `open()`'s Windows path handling
Forward slash separators in relative paths are now accepted. | diff --git a/opener/Cargo.toml b/opener/Cargo.toml
index 6046c69..403ab8d 100644
--- a/opener/Cargo.toml
+++ b/opener/Cargo.toml
@@ -33,6 +33,7 @@ dbus = { version = "0.9", optional = true, features = ["vendored"] }
url = { version = "2", optional = true }
[target.'cfg(windows)'.dependencies]
+normpath = "1"
winap... | 2 | 17 | 0 |
1c43e275825667d99e7e9fe2c14b64445548f78e | Constantin Nickel | 2023-01-28T11:50:59 | Update `bstr` | diff --git a/opener/Cargo.toml b/opener/Cargo.toml
index bbc22fa..a86d985 100644
--- a/opener/Cargo.toml
+++ b/opener/Cargo.toml
@@ -19,7 +19,7 @@ maintenance = { status = "passively-maintained" }
version-sync = "0.9"
[target.'cfg(target_os = "linux")'.dependencies]
-bstr = "0.2"
+bstr = "1"
[target.'cfg(windows... | 1 | 1 | 1 |
be5284951eb6a093d9006c6501afe23de99806e6 | Brian Bowman | 2023-01-28T19:11:37 | Fix clippy lints | diff --git a/opener-bin/src/main.rs b/opener-bin/src/main.rs
index 3d17a4c..053103f 100644
--- a/opener-bin/src/main.rs
+++ b/opener-bin/src/main.rs
@@ -35,7 +35,7 @@ fn main() {
println!("Opened path successfully.");
}
Err(e) => {
- println!("Failed to open path.\n\nerror:\n\n... | 2 | 3 | 7 |
9a36c6e656cd1100d81b0b37adb64a29bfa3dc91 | Brian Bowman | 2021-06-12T00:43:56 | Remove dependency on `wsl` crate | diff --git a/opener/Cargo.toml b/opener/Cargo.toml
index e58abf4..9791e42 100644
--- a/opener/Cargo.toml
+++ b/opener/Cargo.toml
@@ -20,7 +20,6 @@ version-sync = "0.9"
[target.'cfg(target_os = "linux")'.dependencies]
bstr = "0.2"
-wsl = "0.1"
[target.'cfg(windows)'.dependencies]
winapi = { version = "0.3", feat... | 3 | 32 | 3 |
2da976eb48d44c1763128461a3547f8168bd60a0 | Brian Bowman | 2021-06-09T02:02:09 | Refactor `linux_and_more` module | diff --git a/opener/src/linux_and_more.rs b/opener/src/linux_and_more.rs
index f68141c..489dab9 100644
--- a/opener/src/linux_and_more.rs
+++ b/opener/src/linux_and_more.rs
@@ -1,7 +1,8 @@
use crate::OpenError;
use std::ffi::OsStr;
+use std::io;
use std::io::Write;
-use std::process::{Command, Stdio};
+use std::proc... | 1 | 54 | 47 |
f5c5564a9cfa17efb8e6d3e7115742818791795d | Brian Bowman | 2021-06-09T01:30:50 | Fix newline being included after WSL path conversion | diff --git a/opener/Cargo.toml b/opener/Cargo.toml
index a606ed8..e58abf4 100644
--- a/opener/Cargo.toml
+++ b/opener/Cargo.toml
@@ -19,6 +19,7 @@ maintenance = { status = "passively-maintained" }
version-sync = "0.9"
[target.'cfg(target_os = "linux")'.dependencies]
+bstr = "0.2"
wsl = "0.1"
[target.'cfg(window... | 2 | 3 | 1 |
bd30011d61476bb5d31f898d4127af38b18e15eb | Brian Bowman | 2021-06-09T01:22:38 | [WSL] Try `wslview` first instead of second
It's more likely to do the right thing vs the `xdg-open` fallback. | diff --git a/opener/src/lib.rs b/opener/src/lib.rs
index 0535edf..da49da3 100644
--- a/opener/src/lib.rs
+++ b/opener/src/lib.rs
@@ -62,8 +62,8 @@ use std::{env, io};
///
/// - On Windows the `ShellExecuteW` Windows API function is used.
/// - On Mac the system `open` command is used.
-/// - On Windows Subsystem for... | 2 | 13 | 7 |
5d5a67e65f76bbc97c1edc56a4fd7c5d1d49111c | Brian Bowman | 2020-09-13T22:17:18 | Add html_root_url attribute | diff --git a/opener/Cargo.toml b/opener/Cargo.toml
index 2eef18c..85e361a 100644
--- a/opener/Cargo.toml
+++ b/opener/Cargo.toml
@@ -15,7 +15,8 @@ appveyor = { repository = "Seeker14491/opener", branch = "master", service = "gi
travis-ci = { repository = "Seeker14491/opener", branch = "master" }
maintenance = { statu... | 3 | 8 | 1 |
e9913dd742f19c7909d8ade7a5e388281674447f | Brian Bowman | 2020-09-12T18:28:17 | Update lint list | diff --git a/opener/src/lib.rs b/opener/src/lib.rs
index c2855e8..87d8faa 100644
--- a/opener/src/lib.rs
+++ b/opener/src/lib.rs
@@ -22,8 +22,7 @@
deprecated_in_future,
macro_use_extern_crate,
missing_debug_implementations,
- unused_qualifications,
- clippy::cast_possible_truncation
+ unused_qua... | 1 | 1 | 2 |
38e3e1d26886fb7fbb4c692cd6fa1faa228fa011 | Brian Bowman | 2020-01-20T19:29:32 | Slim down opener-bin
Removes the dependency on 'failure'. | diff --git a/opener-bin/Cargo.toml b/opener-bin/Cargo.toml
index 866f76e..e8ae91d 100644
--- a/opener-bin/Cargo.toml
+++ b/opener-bin/Cargo.toml
@@ -5,6 +5,5 @@ authors = ["Brian Bowman <seeker14491@gmail.com>"]
edition = "2018"
[dependencies]
-failure = "0.1.2"
opener = { path = "../opener" }
structopt = "0.3.1"... | 2 | 9 | 17 |
103f1cf7ffb71d00eed9062d1ccde109fd28e158 | Brian Bowman | 2020-01-20T19:28:13 | Remove redundant lint | diff --git a/opener-bin/src/main.rs b/opener-bin/src/main.rs
index 5cb014b..b0cbc8c 100644
--- a/opener-bin/src/main.rs
+++ b/opener-bin/src/main.rs
@@ -3,7 +3,6 @@
deprecated_in_future,
macro_use_extern_crate,
missing_debug_implementations,
- unused_labels,
unused_qualifications,
clippy::ca... | 2 | 0 | 2 |
2ee23e57caa9f4fbdcc14fc1d11d43ef39b2e9bf | Brian Bowman | 2019-10-05T03:18:28 | Add 'os' category to package metadata | diff --git a/opener/Cargo.toml b/opener/Cargo.toml
index 1d40849..2eef18c 100644
--- a/opener/Cargo.toml
+++ b/opener/Cargo.toml
@@ -7,6 +7,7 @@ description = "Open a file or link using the system default program."
repository = "https://github.com/Seeker14491/opener"
readme = "../README.md"
keywords = ["open", "defa... | 1 | 1 | 0 |
25b295a345f85eff7587cc48416738f03a4a4f36 | Brian Bowman | 2019-09-30T22:08:07 | Release v0.4.1 | diff --git a/opener/Cargo.toml b/opener/Cargo.toml
index 89794fb..1d40849 100644
--- a/opener/Cargo.toml
+++ b/opener/Cargo.toml
@@ -1,6 +1,6 @@
[package]
name = "opener"
-version = "0.4.0"
+version = "0.4.1"
authors = ["Brian Bowman <seeker14491@gmail.com>"]
edition = "2018"
description = "Open a file or link usi... | 1 | 1 | 1 |
4b585d9f4f99881e584ba0b4bdb957b7769fb2df | Brian Bowman | 2019-09-17T02:53:04 | Add some lints | diff --git a/opener-bin/src/main.rs b/opener-bin/src/main.rs
index beb5a5c..5cb014b 100644
--- a/opener-bin/src/main.rs
+++ b/opener-bin/src/main.rs
@@ -1,6 +1,12 @@
-extern crate failure;
-extern crate opener;
-extern crate structopt;
+#![warn(
+ rust_2018_idioms,
+ deprecated_in_future,
+ macro_use_extern_cr... | 2 | 19 | 6 |
9c4c5674466614a7091d7662c2266cff754f8779 | Brian Bowman | 2019-09-17T02:42:41 | Update to Rust 2018 | diff --git a/opener-bin/Cargo.toml b/opener-bin/Cargo.toml
index e86c22c..866f76e 100644
--- a/opener-bin/Cargo.toml
+++ b/opener-bin/Cargo.toml
@@ -2,6 +2,7 @@
name = "opener-bin"
version = "0.1.0"
authors = ["Brian Bowman <seeker14491@gmail.com>"]
+edition = "2018"
[dependencies]
failure = "0.1.2"
diff --git a... | 4 | 3 | 2 |
70b8bd8187512e9fc1dbf9d07295d424d92755d1 | Brian Bowman | 2019-09-17T02:34:15 | Update binary structopt dep | diff --git a/opener-bin/Cargo.toml b/opener-bin/Cargo.toml
index 31b312b..e86c22c 100644
--- a/opener-bin/Cargo.toml
+++ b/opener-bin/Cargo.toml
@@ -6,4 +6,4 @@ authors = ["Brian Bowman <seeker14491@gmail.com>"]
[dependencies]
failure = "0.1.2"
opener = { path = "../opener" }
-structopt = "0.2.10"
+structopt = "0.3.... | 1 | 1 | 1 |
e9c18af0d1302277ad313a56edd0afbddfdb322f | Brian Bowman | 2019-09-17T02:28:04 | Add maintenance field to Cargo.toml | diff --git a/opener/Cargo.toml b/opener/Cargo.toml
index 5de494a..d8286f1 100644
--- a/opener/Cargo.toml
+++ b/opener/Cargo.toml
@@ -11,6 +11,7 @@ license = "MIT OR Apache-2.0"
[badges]
appveyor = { repository = "Seeker14491/opener", branch = "master", service = "github" }
travis-ci = { repository = "Seeker14491/ope... | 1 | 1 | 0 |
6a77e631edfb11378f4c0555f8f8b07322d2c093 | Lucien Greathouse | 2019-05-02T20:39:35 | Switch Error trait instead of deriving Fail | diff --git a/opener/Cargo.toml b/opener/Cargo.toml
index 0834e0f..8baa460 100644
--- a/opener/Cargo.toml
+++ b/opener/Cargo.toml
@@ -13,8 +13,6 @@ appveyor = { repository = "Seeker14491/opener", branch = "master", service = "gi
travis-ci = { repository = "Seeker14491/opener", branch = "master" }
[dependencies]
-fai... | 2 | 11 | 7 |
565a08abf5a1ce7d69a086648ade3c74952732b1 | Brian Bowman | 2018-11-15T22:09:17 | Bump version | diff --git a/opener/Cargo.toml b/opener/Cargo.toml
index d94964d..0834e0f 100644
--- a/opener/Cargo.toml
+++ b/opener/Cargo.toml
@@ -1,6 +1,6 @@
[package]
name = "opener"
-version = "0.3.1"
+version = "0.3.2"
authors = ["Brian Bowman <seeker14491@gmail.com>"]
description = "Open a file or link using the system defa... | 1 | 1 | 1 |
52e50f011c00c2ab51d6d35e30c055066845579a | Brian Bowman | 2018-11-15T21:00:46 | Bump version | diff --git a/opener/Cargo.toml b/opener/Cargo.toml
index f126b63..d94964d 100644
--- a/opener/Cargo.toml
+++ b/opener/Cargo.toml
@@ -1,6 +1,6 @@
[package]
name = "opener"
-version = "0.3.0"
+version = "0.3.1"
authors = ["Brian Bowman <seeker14491@gmail.com>"]
description = "Open a file or link using the system defa... | 1 | 1 | 1 |
a75ad5a6be7d0cbd54981e9e5d1bb1f73901c67e | Brian Bowman | 2018-08-17T20:09:11 | Add a note about file/website path ambiguity | diff --git a/opener/src/lib.rs b/opener/src/lib.rs
index 0e33659..56542a4 100644
--- a/opener/src/lib.rs
+++ b/opener/src/lib.rs
@@ -92,7 +92,10 @@ impl From<io::Error> for OpenError {
/// Opens a file or link with the system default program.
///
-/// Note that a result of `Ok(())` just means a way of opening the p... | 1 | 4 | 1 |
adb01e3c6a100e336dfafc93e99c5c7442eba342 | Brian Bowman | 2018-08-17T19:16:32 | Add missing newline when printing process error | diff --git a/opener/src/lib.rs b/opener/src/lib.rs
index d6565a2..0e33659 100644
--- a/opener/src/lib.rs
+++ b/opener/src/lib.rs
@@ -75,7 +75,7 @@ impl Display for OpenError {
let stderr = stderr.trim();
if !stderr.is_empty() {
- write!(f, "command stderr:\n{}", st... | 1 | 1 | 1 |
f7cd14907d849a23daa74b44a9257b4e06a3fe4d | Brian Bowman | 2018-08-17T05:36:16 | Document that the `ExitStatus` variant is never returned on Windows | diff --git a/opener/src/lib.rs b/opener/src/lib.rs
index 54da479..d6565a2 100644
--- a/opener/src/lib.rs
+++ b/opener/src/lib.rs
@@ -35,6 +35,8 @@ use std::{
/// An error type representing the failure to open a path. Possibly returned by the [`open`]
/// function.
+///
+/// The `ExitStatus` variant will never be re... | 1 | 2 | 0 |
7af7934b2e0446039329ccaebd9fd598426783f5 | Brian Bowman | 2018-08-17T04:40:54 | Capture command stderr | diff --git a/opener/src/lib.rs b/opener/src/lib.rs
index 2547902..54da479 100644
--- a/opener/src/lib.rs
+++ b/opener/src/lib.rs
@@ -48,19 +48,37 @@ pub enum OpenError {
/// The failed process's exit status.
status: ExitStatus,
+
+ /// Anything the process wrote to stderr.
+ stderr: St... | 1 | 62 | 28 |
8f564ff6717a7565e108ebbf32e54175fbaa7c15 | Brian Bowman | 2018-08-08T08:47:59 | Bump version | diff --git a/opener/Cargo.toml b/opener/Cargo.toml
index d4ab08e..3f0bf5b 100644
--- a/opener/Cargo.toml
+++ b/opener/Cargo.toml
@@ -1,6 +1,6 @@
[package]
name = "opener"
-version = "0.1.0"
+version = "0.2.0"
authors = ["Brian Bowman <seeker14491@gmail.com>"]
description = "Open a file or link using the system defa... | 1 | 1 | 1 |
f0781681ce347a06a5c072a8bc45d0543ce5dbe0 | Brian Bowman | 2018-08-08T08:47:27 | Don't expose internal `open_sys` function
The `open_sys` functions were accidentally marked `pub` on non-Windows builds. | diff --git a/opener/src/lib.rs b/opener/src/lib.rs
index db61d8b..2547902 100644
--- a/opener/src/lib.rs
+++ b/opener/src/lib.rs
@@ -125,7 +125,7 @@ mod windows {
}
#[cfg(target_os = "macos")]
-pub fn open_sys(path: &OsStr) -> Result<(), OpenError> {
+fn open_sys(path: &OsStr) -> Result<(), OpenError> {
use st... | 1 | 2 | 2 |
2a8d9cb59b2cbba5a68bda12150819c6ff811fe4 | Brian Bowman | 2018-08-08T08:38:09 | Fix README link in lib Cargo.toml | diff --git a/opener/Cargo.toml b/opener/Cargo.toml
index c942016..d4ab08e 100644
--- a/opener/Cargo.toml
+++ b/opener/Cargo.toml
@@ -4,7 +4,7 @@ version = "0.1.0"
authors = ["Brian Bowman <seeker14491@gmail.com>"]
description = "Open a file or link using the system default program."
repository = "https://github.com/... | 1 | 1 | 1 |
bb978a100a001d1282f592f9d177368d6a5730cf | Sergio Benitez | 2024-03-13T07:51:28 | Update yansi to 1.0. | diff --git a/Cargo.toml b/Cargo.toml
index bea26dc..5ad68aa 100644
--- a/Cargo.toml
+++ b/Cargo.toml
@@ -17,7 +17,7 @@ colors = ["yansi"]
[dependencies]
quote = "1.0"
proc-macro2 = "1.0"
-yansi = { version = "1.0.0-rc", optional = true }
+yansi = { version = "1.0.1", optional = true }
[dependencies.syn]
version ... | 1 | 1 | 1 |
27be55a8b4b45ee615b54cd87e45c516f4317dd5 | Techcable | 2023-09-06T06:07:21 | Precisely enable necessary 'syn' features.
Resolves #4. | diff --git a/Cargo.toml b/Cargo.toml
index 76b875e..bea26dc 100644
--- a/Cargo.toml
+++ b/Cargo.toml
@@ -17,12 +17,20 @@ colors = ["yansi"]
[dependencies]
quote = "1.0"
proc-macro2 = "1.0"
-syn = "2.0"
yansi = { version = "1.0.0-rc", optional = true }
+[dependencies.syn]
+version = "2"
+default-features = false
+... | 1 | 9 | 1 |
45fa2d68669d10daeaf0f9b664a96576626fae16 | Sergio Benitez | 2023-07-10T19:00:51 | New version: 0.10.1. | diff --git a/Cargo.toml b/Cargo.toml
index f5d2f02..76b875e 100644
--- a/Cargo.toml
+++ b/Cargo.toml
@@ -1,6 +1,6 @@
[package]
name = "proc-macro2-diagnostics"
-version = "0.10.0"
+version = "0.10.1"
authors = ["Sergio Benitez <sb@sergio.bz>"]
description = "Diagnostics for proc-macro2."
license = "MIT/Apache-2.0" | 1 | 1 | 1 |
2a9f53e31f0b8757b49a10ea3859a708896c3300 | Sergio Benitez | 2023-07-05T23:13:57 | Update 'yansi' to v1.0.0-rc. | diff --git a/Cargo.toml b/Cargo.toml
index c74d6e8..f5d2f02 100644
--- a/Cargo.toml
+++ b/Cargo.toml
@@ -18,7 +18,7 @@ colors = ["yansi"]
quote = "1.0"
proc-macro2 = "1.0"
syn = "2.0"
-yansi = { version = "0.5", optional = true }
+yansi = { version = "1.0.0-rc", optional = true }
[build-dependencies]
version_che... | 3 | 17 | 25 |
1adc3f4bb137293542d058f2a8fe498b00e09336 | Marcel Hellwig | 2021-09-13T07:26:06 | Add meta information to Cargo.toml. | diff --git a/Cargo.toml b/Cargo.toml
index 7af7da9..c74d6e8 100644
--- a/Cargo.toml
+++ b/Cargo.toml
@@ -5,6 +5,10 @@ authors = ["Sergio Benitez <sb@sergio.bz>"]
description = "Diagnostics for proc-macro2."
license = "MIT/Apache-2.0"
edition = "2018"
+readme = "README.md"
+repository = "https://github.com/SergioBeni... | 1 | 4 | 0 |
1920e3c29e831d837e2668f7ee33e348eb66e543 | Sergio Benitez | 2023-03-22T23:08:14 | Update 'syn' to 2.0. | diff --git a/example/Cargo.toml b/example/Cargo.toml
index 6f388d6..2aaaff2 100644
--- a/example/Cargo.toml
+++ b/example/Cargo.toml
@@ -12,4 +12,4 @@ proc-macro = true
proc-macro2-diagnostics = { path = ".." }
quote = "1.0"
proc-macro2 = "1.0"
-syn = "1.0"
+syn = "2.0"
diff --git a/example/src/lib.rs b/example/src/... | 2 | 2 | 2 |
8a739598692e195858249fb3ad89370dca893371 | Sergio Benitez | 2020-11-01T10:11:48 | New version: 0.9.1. | diff --git a/Cargo.toml b/Cargo.toml
index bd443c6..4d82fdf 100644
--- a/Cargo.toml
+++ b/Cargo.toml
@@ -1,6 +1,6 @@
[package]
name = "proc-macro2-diagnostics"
-version = "0.9.0"
+version = "0.9.1"
authors = ["Sergio Benitez <sb@sergio.bz>"]
description = "Diagnostics for proc-macro2."
license = "MIT/Apache-2.0"
d... | 2 | 2 | 2 |
bc08ecce80684eab0d5b430c1790350519bfadaa | Sergio Benitez | 2020-11-01T10:09:58 | Add '_or' variants of 'emit' methods. | diff --git a/src/diagnostic.rs b/src/diagnostic.rs
index d30a784..56aeed7 100644
--- a/src/diagnostic.rs
+++ b/src/diagnostic.rs
@@ -171,36 +171,47 @@ impl Diagnostic {
/// Emit the diagnostic as tokens.
#[cfg(not(nightly_diagnostics))]
- fn emit_as_tokens(self, item: bool) -> TokenStream {
+ fn emit_... | 1 | 19 | 8 |
08b802e0a8751828ab789f5f1cb29c44a681c1e8 | Sergio Benitez | 2020-10-10T06:30:28 | Improve colors on stable. | diff --git a/src/diagnostic.rs b/src/diagnostic.rs
index 6cc8fa0..d30a784 100644
--- a/src/diagnostic.rs
+++ b/src/diagnostic.rs
@@ -1,6 +1,7 @@
use proc_macro2::{Span, TokenStream};
use crate::SpanDiagnosticExt;
+use crate::line::Line;
/// Trait implemented by types that can be converted into a set of `Span`s.
... | 3 | 118 | 61 |
8336005b05f6ba820bbe171b0504e8b3969e8de1 | Sergio Benitez | 2019-09-23T19:17:27 | Rename 'SpanDiagExt' to 'SpanDiagnosticExt'. | diff --git a/example/src/lib.rs b/example/src/lib.rs
index dbbbf56..011a309 100644
--- a/example/src/lib.rs
+++ b/example/src/lib.rs
@@ -2,7 +2,7 @@
extern crate proc_macro;
use proc_macro2::Span;
-use proc_macro2_diagnostics::{SpanDiagExt, Diagnostic, Level};
+use proc_macro2_diagnostics::{SpanDiagnosticExt, Diagn... | 4 | 5 | 5 |
885ec2e8cb26efbc748958198279abcea2d5f0ec | Sergio Benitez | 2019-09-20T09:25:04 | Gracefully handle non-proc-macro crates. | diff --git a/example/src/lib.rs b/example/src/lib.rs
index 09e475a..dbbbf56 100644
--- a/example/src/lib.rs
+++ b/example/src/lib.rs
@@ -57,7 +57,6 @@ impl syn::parse::Parse for Item {
let mut span = input.cursor().span();
while !input.peek(syn::Token![,]) && !input.is_empty() {
let ident... | 6 | 339 | 429 |
7fa95521a92970be559dd40347b2d6c92b32160f | Sergio Benitez | 2019-09-20T02:22:57 | Expose 'Diagnostic::level()'. | diff --git a/src/nightly.rs b/src/nightly.rs
index 7cb3697..d178aca 100644
--- a/src/nightly.rs
+++ b/src/nightly.rs
@@ -32,6 +32,19 @@ impl Into<proc_macro::Level> for Level {
}
}
+#[doc(hidden)]
+impl From<proc_macro::Level> for Level {
+ fn from(ext_level: proc_macro::Level) -> Level {
+ match ext_... | 2 | 23 | 0 |
a165716908baee6d73392f9ac639f079acb5e861 | Sergio Benitez | 2024-01-22T23:57:28 | New version: 0.9.10. | diff --git a/Cargo.toml b/Cargo.toml
index d532b09..b9232c0 100644
--- a/Cargo.toml
+++ b/Cargo.toml
@@ -1,6 +1,6 @@
[package]
name = "uncased"
-version = "0.9.9"
+version = "0.9.10"
authors = ["Sergio Benitez <sb@sergio.bz>"]
edition = "2018"
description = "Case-preserving, ASCII case-insensitive, no_std string t... | 1 | 1 | 1 |
4daf629e3bebb895ceca5d59c2e0446f6f288345 | Sergio Benitez | 2024-01-22T23:51:09 | Impl 'From<&UncasedStr>' for 'Arc<UncasedStr>'.
Co-authored-by: LordGolias <lord.golias1@gmail.com> | diff --git a/src/borrowed.rs b/src/borrowed.rs
index 8afa6e1..f8d0b05 100644
--- a/src/borrowed.rs
+++ b/src/borrowed.rs
@@ -3,7 +3,7 @@ use core::hash::{Hash, Hasher};
use core::fmt;
#[cfg(feature = "alloc")]
-use alloc::string::String;
+use alloc::{string::String, sync::Arc};
/// A cost-free reference to an un... | 2 | 23 | 3 |
c44154668584669e77f568752a902bfa8ae4ed7b | Sergio Benitez | 2023-05-05T23:24:18 | New version: 0.9.9. | diff --git a/Cargo.toml b/Cargo.toml
index 6273e39..d532b09 100644
--- a/Cargo.toml
+++ b/Cargo.toml
@@ -1,6 +1,6 @@
[package]
name = "uncased"
-version = "0.9.8"
+version = "0.9.9"
authors = ["Sergio Benitez <sb@sergio.bz>"]
edition = "2018"
description = "Case-preserving, ASCII case-insensitive, no_std string ty... | 1 | 1 | 1 |
154c368b8508af79107d5805de71360c489d3846 | Sergio Benitez | 2023-05-05T23:23:48 | Impl 'Partial{Eq,Ord}' between borrowed and owned.
Adds missing implementations. | diff --git a/src/owned.rs b/src/owned.rs
index 07e6ed7..0a40a13 100644
--- a/src/owned.rs
+++ b/src/owned.rs
@@ -247,7 +247,9 @@ impl_partial_eq!(Uncased<'_> [as_uncased_str] = String [as_uncased]);
impl_partial_eq!(String [as_uncased] = &Uncased<'_> [as_uncased_str]);
impl_partial_eq!(&Uncased<'_> [as_uncased_str] =... | 1 | 4 | 0 |
00bd826bacda9154e70f58b7d6311ab35a242405 | Sergio Benitez | 2023-05-05T23:15:18 | New version: 0.9.8. | diff --git a/Cargo.toml b/Cargo.toml
index fb871b2..6273e39 100644
--- a/Cargo.toml
+++ b/Cargo.toml
@@ -1,6 +1,6 @@
[package]
name = "uncased"
-version = "0.9.7"
+version = "0.9.8"
authors = ["Sergio Benitez <sb@sergio.bz>"]
edition = "2018"
description = "Case-preserving, ASCII case-insensitive, no_std string ty... | 1 | 1 | 1 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.