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
52348af4929706fc06456d69e44689aec3ed3384
Bernhard Schuster
2019-12-13T20:24:48
chore(fmt): cargo fmt
diff --git a/src/lib.rs b/src/lib.rs index 2b85f02..54870f0 100644 --- a/src/lib.rs +++ b/src/lib.rs @@ -35,9 +35,9 @@ extern crate quickcheck; #[cfg(test)] extern crate rand; -use chrono::{DateTime,TimeZone,Utc}; -pub use num_bigint::{BigInt,BigUint}; -use num_traits::{FromPrimitive,One,ToPrimitive,Zero}; +use chr...
1
186
161
ab7616a86c8b26c40f06bc42a159a1b6915abdb9
Bernhard Schuster
2019-12-13T20:15:28
feat(OID): silence warnings
diff --git a/src/lib.rs b/src/lib.rs index b349bcf..2b85f02 100644 --- a/src/lib.rs +++ b/src/lib.rs @@ -339,11 +339,11 @@ impl Error for ASN1DecodeErr { } } - fn cause(&self) -> Option<&Error> { + fn cause(&self) -> Option<&dyn Error> { None } - fn source(&self) -> Option<&(Err...
1
5
5
7c8e01f5b2c7c2659c8bf5db0c25a124deb62a88
nyamnyam
2019-09-12T01:16:53
BigUint(0) bug fixed (encode_base127)
diff --git a/src/lib.rs b/src/lib.rs index 3d5368f..b349bcf 100644 --- a/src/lib.rs +++ b/src/lib.rs @@ -983,6 +983,11 @@ fn encode_base127(v: &BigUint) -> Vec<u8> { let u128 = BigUint::from_u8(128).unwrap(); let zero = BigUint::zero(); + if acc == zero { + res.push(0); + return res; + }...
1
13
0
5b62a49298001e3a5d8fa60476cb5868156bdd0d
Adam Wick
2019-03-29T23:21:04
Bump version to 0.4.0.
diff --git a/Cargo.toml b/Cargo.toml index b7f956c..a419fe6 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -1,6 +1,6 @@ [package] name = "simple_asn1" -version = "0.3.1" +version = "0.4.0" authors = ["Adam Wick <awick@uhsure.com>"] description = "A simple DER/ASN.1 encoding/decoding library." categories = ["encoding"...
1
1
1
b72f3849894111d207f6478cf0f872d494ceea6f
Adam Wick
2019-03-29T23:18:17
Test reparsing generated GeneralizedTimes, to expose a bug that's about to get fixed.
diff --git a/src/lib.rs b/src/lib.rs index cffec33..60464bd 100644 --- a/src/lib.rs +++ b/src/lib.rs @@ -1391,6 +1391,21 @@ mod tests { resvec.remove(0); resvec.remove(0); assert_eq!(String::from_utf8(resvec).unwrap(), s); + match from_der_(vec, 0) { + ...
1
15
0
0641eff20bcbc2e9e6224dd81acac7f2c0b2c166
Flakebi
2019-03-29T16:51:42
Add errors for panics found by fuzzing
diff --git a/src/lib.rs b/src/lib.rs index 092a7d5..76a6820 100644 --- a/src/lib.rs +++ b/src/lib.rs @@ -273,7 +273,17 @@ pub enum ASN1DecodeErr { LengthTooLarge(usize), UTF8DecodeFailure(Utf8Error), PrintableStringDecodeFailure, - InvalidDateValue(String) + InvalidDateValue(String), + InvalidBi...
1
88
29
115859668c6e26d7bc231db4ed72237b36aa25db
Flakebi
2019-03-29T15:38:56
Remove usage of deprecated functions
diff --git a/src/lib.rs b/src/lib.rs index 7e17239..092a7d5 100644 --- a/src/lib.rs +++ b/src/lib.rs @@ -821,8 +821,8 @@ pub fn to_der(i: &ASN1Block) -> Result<Vec<u8>,ASN1EncodeErr> { } &ASN1Block::GeneralizedTime(_, ref time) => { let base = time.format("%Y%m%d%H%M%S.%f").to_string(); -...
1
2
2
8a64254c9520d7b954c852787966f2eb8da97180
Flakebi
2018-12-23T23:23:52
Return error on invalid length
diff --git a/src/lib.rs b/src/lib.rs index cffec33..7e17239 100644 --- a/src/lib.rs +++ b/src/lib.rs @@ -374,6 +374,9 @@ fn from_der_(i: &[u8], start_offset: usize) let soff = start_offset + index; let (tag, constructed, class) = decode_tag(i, &mut index); let len = decode_length(i, &mut inde...
1
3
0
c6b8e90a5042c7c116ce5e713a2f6dd37f04a615
Adam Wick
2019-03-27T16:03:17
Bump version number.
diff --git a/Cargo.toml b/Cargo.toml index 77d6f04..b7f956c 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -1,6 +1,6 @@ [package] name = "simple_asn1" -version = "0.3.0" +version = "0.3.1" authors = ["Adam Wick <awick@uhsure.com>"] description = "A simple DER/ASN.1 encoding/decoding library." categories = ["encoding"...
1
1
1
5aa3b6665c4cb2e9268cd657d7c0fa78a09c81e0
Your Name
2019-03-20T12:39:05
Make BigInt and BigUint public use
diff --git a/src/lib.rs b/src/lib.rs index 9f229d5..cffec33 100644 --- a/src/lib.rs +++ b/src/lib.rs @@ -36,7 +36,7 @@ extern crate quickcheck; extern crate rand; use chrono::{DateTime,TimeZone,Utc}; -use num_bigint::{BigInt,BigUint}; +pub use num_bigint::{BigInt,BigUint}; use num_traits::{FromPrimitive,One,ToPrim...
1
1
1
7a7b8fdbc361424ebd7991ebe414c8d6b5a43e06
Adam Wick
2018-12-14T16:20:05
Bump version number after a somewhat major change.
diff --git a/Cargo.toml b/Cargo.toml index eb782f6..77d6f04 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -1,6 +1,6 @@ [package] name = "simple_asn1" -version = "0.2.1" +version = "0.3.0" authors = ["Adam Wick <awick@uhsure.com>"] description = "A simple DER/ASN.1 encoding/decoding library." categories = ["encoding"...
1
1
1
b678c7050880195e3f2369bb8b4f90d39a271451
Flakebi
2018-12-09T11:00:33
Reduce num dependencies, improve class implementation and add explicit tags The default datatypes always have Universal as their class. If we encounter another class while parsing, it is a tagged block. I am not sure how (and if at all) we can distinguish explicitly and implicitly tagged data. For now they should be ...
diff --git a/Cargo.toml b/Cargo.toml index e9d974b..eb782f6 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -9,8 +9,9 @@ license-file = "LICENSE" repository = "https://github.com/acw/simple_asn1" [dependencies] -chrono = "^0.4.0" -num = "^0.2.0" +chrono = "^0.4.0" +num-bigint = "^0.2.0" +num-traits = "^0.2.0" ...
2
280
222
84bd0c6642c024fde718f1339358298cb24c7928
Adam Wick
2018-11-16T18:32:32
Bump version to get tag change.
diff --git a/Cargo.toml b/Cargo.toml index bc34661..e9d974b 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -1,6 +1,6 @@ [package] name = "simple_asn1" -version = "0.2.0" +version = "0.2.1" authors = ["Adam Wick <awick@uhsure.com>"] description = "A simple DER/ASN.1 encoding/decoding library." categories = ["encoding"...
1
1
1
9f22f1dde04e7cc327ff4ff929aa6a4858524d36
Ryan Leckey
2018-11-15T05:12:13
Set bit 5 for SEQUENCE 0x10 and SET 0x11 to indicate constructed encoding
diff --git a/src/lib.rs b/src/lib.rs index 73aa565..4e454d8 100644 --- a/src/lib.rs +++ b/src/lib.rs @@ -836,7 +836,13 @@ fn encode_tag(c: ASN1Class, t: &BigUint) -> Vec<u8> { let cbyte = encode_class(c); match t.to_u8() { - Some(x) if x < 31 => { + Some(mut x) if x < 31 => { + if x...
1
7
1
13ff3a0c193990c6216d7e52c712a95ca91a3dd5
Adam Wick
2018-11-04T23:25:56
Bump version number.
diff --git a/Cargo.toml b/Cargo.toml index ef6b71f..bc34661 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -1,6 +1,6 @@ [package] name = "simple_asn1" -version = "0.1.0" +version = "0.2.0" authors = ["Adam Wick <awick@uhsure.com>"] description = "A simple DER/ASN.1 encoding/decoding library." categories = ["encoding"...
1
1
1
823fc31f6f9ba0636207226901f46d50eb1fdd01
Adam Wick
2018-10-26T19:04:31
Add Display and Error implementations for ASN1DecodeError, plus some context.
diff --git a/src/lib.rs b/src/lib.rs index 56db616..73aa565 100644 --- a/src/lib.rs +++ b/src/lib.rs @@ -40,6 +40,7 @@ use std::error::Error; use std::fmt; use std::iter::FromIterator; use std::mem::size_of; +use std::str::Utf8Error; /// An ASN.1 block class. /// @@ -245,13 +246,59 @@ const PRINTABLE_CHARS: &'st...
1
60
13
bdb8f7f8aabf49c07466613840c8ae70923f5e8a
Adam Wick
2018-10-26T16:25:05
Make ASN1EncodeErr an instance of std::Error.
diff --git a/src/lib.rs b/src/lib.rs index 656e8e3..56db616 100644 --- a/src/lib.rs +++ b/src/lib.rs @@ -36,6 +36,8 @@ extern crate rand; use chrono::{DateTime,TimeZone,Utc}; use num::{BigInt,BigUint,FromPrimitive,One,ToPrimitive,Zero}; +use std::error::Error; +use std::fmt; use std::iter::FromIterator; use std::...
1
29
0
484ccef3fbe7602fe0b09fb50cc90ed75b3df4f2
Adam Wick
2018-10-26T16:24:37
Remove a warning that's not entirely helpful.
diff --git a/src/lib.rs b/src/lib.rs index 0ab63b5..656e8e3 100644 --- a/src/lib.rs +++ b/src/lib.rs @@ -974,6 +974,7 @@ mod tests { } } + #[allow(type_alias_bounds)] type ASN1BlockGen<G: Gen> = fn(&mut G, usize) -> ASN1Block; fn arb_boolean<G: Gen>(g: &mut G, _d: usize) -> ASN1Block {
1
1
0
939621b8c4e3284b80a798d121f116b633d2564e
Ryan Leckey
2018-10-23T19:42:44
Upgrade dependencies
diff --git a/Cargo.toml b/Cargo.toml index 9b24485..ef6b71f 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -10,7 +10,8 @@ repository = "https://github.com/acw/simple_asn1" [dependencies] chrono = "^0.4.0" -num = "^0.1.40" +num = "^0.2.0" [dev-dependencies] -quickcheck = "^0.4.1" +quickcheck = "^0.7.1" +rand =...
2
11
7
f89c6d9be6002dd508d6c47fe067c7bee21bb64a
Adam Wick
2018-01-17T01:45:03
Fix comment around ToASN1.
diff --git a/src/lib.rs b/src/lib.rs index d8bc41c..c796bd5 100644 --- a/src/lib.rs +++ b/src/lib.rs @@ -868,7 +868,10 @@ pub fn der_decode<T: FromASN1WithBody>(v: &[u8]) -> Result<T,T::Error> } /// The set of types that can automatically converted into a sequence -/// of `ASN1Block`s. +/// of `ASN1Block`s. You sho...
1
4
1
cbed82a20523ed4c07aab3bdbd97b303b5d829a5
Adam Wick
2017-12-27T02:16:31
Slowly learning the Cargo keyword syntax through errors.
diff --git a/Cargo.toml b/Cargo.toml index 7239c50..9b24485 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -4,7 +4,7 @@ version = "0.1.0" authors = ["Adam Wick <awick@uhsure.com>"] description = "A simple DER/ASN.1 encoding/decoding library." categories = ["encoding"] -keywords = ["ASN1","data encoding","DER"] +keyword...
1
1
1
155fe48e7f2a00f7c28d6a6443257f3e83fcb716
Adam Wick
2017-12-27T02:15:21
Add description, fix keywords.
diff --git a/Cargo.toml b/Cargo.toml index edda0bc..7239c50 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -2,8 +2,9 @@ name = "simple_asn1" version = "0.1.0" authors = ["Adam Wick <awick@uhsure.com>"] +description = "A simple DER/ASN.1 encoding/decoding library." categories = ["encoding"] -keywords = ["ASN.1","data e...
1
2
1
f6b39d7003555f539793aea0b71b0ddfbd1149f4
Adam Wick
2017-12-27T02:06:23
Documentation!
diff --git a/Cargo.toml b/Cargo.toml index 2f8f47a..edda0bc 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -2,6 +2,10 @@ name = "simple_asn1" version = "0.1.0" authors = ["Adam Wick <awick@uhsure.com>"] +categories = ["encoding"] +keywords = ["ASN.1","data encoding","DER"] +license-file = "LICENSE" +repository = "https...
2
80
3
dc1fd798863dd6bf861544d31486335fba69280e
Adam Wick
2017-12-22T06:27:21
Add generic operators for ASN1Blocks.
diff --git a/src/lib.rs b/src/lib.rs index 395ddf2..ef4e1e0 100644 --- a/src/lib.rs +++ b/src/lib.rs @@ -30,6 +30,52 @@ pub enum ASN1Block { Unknown(ASN1Class, usize, BigUint, Vec<u8>) } +impl ASN1Block { + pub fn class(&self) -> ASN1Class { + match self { + &ASN1Block::Boolean(c,_,_) ...
1
46
0
c6a7d3039c1127a11d7f293a3f43a44d7365e28c
Adam Wick
2017-12-22T05:44:06
Add the ability to capture start indexes of components, and variants of FromASN1 that require the body contents.
diff --git a/src/lib.rs b/src/lib.rs index d9dc68a..395ddf2 100644 --- a/src/lib.rs +++ b/src/lib.rs @@ -9,25 +9,85 @@ use num::{BigInt,BigUint,FromPrimitive,One,ToPrimitive,Zero}; use std::iter::FromIterator; use std::mem::size_of; -#[derive(Clone,Debug,PartialEq)] +#[derive(Clone,Debug)] pub enum ASN1Block { - ...
1
164
78
5e8dde500e165866cae51ae868be204d8922fae2
Adam Wick
2017-12-22T00:56:56
Shift import into test module to avoid warning.
diff --git a/src/lib.rs b/src/lib.rs index f18a0ea..d9dc68a 100644 --- a/src/lib.rs +++ b/src/lib.rs @@ -5,7 +5,6 @@ extern crate num; extern crate quickcheck; use chrono::{DateTime,TimeZone,Utc}; -use chrono::offset::LocalResult; use num::{BigInt,BigUint,FromPrimitive,One,ToPrimitive,Zero}; use std::iter::FromIt...
1
1
1
762b9b2fa49374199706e016ef805116ed1a3503
Adam Wick
2017-12-19T18:21:36
Add time value support.
diff --git a/Cargo.toml b/Cargo.toml index 205e2e6..2f8f47a 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -4,7 +4,8 @@ version = "0.1.0" authors = ["Adam Wick <awick@uhsure.com>"] [dependencies] -num = "^0.1.40" +chrono = "^0.4.0" +num = "^0.1.40" [dev-dependencies] quickcheck = "^0.4.1" diff --git a/src/lib.r...
2
169
6
89cf0a25b5c9355557ff625f29912d03c44e0171
Adam Wick
2017-12-12T05:31:57
Support more string types.
diff --git a/src/lib.rs b/src/lib.rs index 69b2162..cc66309 100644 --- a/src/lib.rs +++ b/src/lib.rs @@ -15,9 +15,12 @@ pub enum ASN1Block { OctetString(ASN1Class, Vec<u8>), Null(ASN1Class), ObjectIdentifier(ASN1Class, OID), + TeletexString(ASN1Class, String), + PrintableString(ASN1Class, String), ...
1
67
50
dd281edcd14cb0c8dbbcf3e62d5aef19b5b33eb1
Adam Wick
2017-12-11T05:54:01
Add support for printable strings.
diff --git a/src/lib.rs b/src/lib.rs index 46bfb9c..69b2162 100644 --- a/src/lib.rs +++ b/src/lib.rs @@ -17,6 +17,7 @@ pub enum ASN1Block { ObjectIdentifier(ASN1Class, OID), IA5String(ASN1Class, String), UTF8String(ASN1Class, String), + PrintableString(ASN1Class, String), Sequence(ASN1Class, Vec<...
1
51
1
018770f711aa7c9506b50b893fba3e96b97bcd26
Adam Wick
2017-11-14T22:55:01
Generic traits for dealing with ASN1.
diff --git a/src/lib.rs b/src/lib.rs index 5cfd4e1..46bfb9c 100644 --- a/src/lib.rs +++ b/src/lib.rs @@ -527,6 +527,45 @@ fn encode_len(x: usize) -> Vec<u8> { } } +// ---------------------------------------------------------------------------- + +pub trait FromASN1 : Sized { + type Error : From<ASN1DecodeErr...
1
39
0
b9594c9fb4abef0f6c3b6118ac93317038f65e9c
Adam Wick
2017-11-14T22:54:46
Ignore read result.
diff --git a/src/lib.rs b/src/lib.rs index 2c8d7b6..5cfd4e1 100644 --- a/src/lib.rs +++ b/src/lib.rs @@ -789,7 +789,7 @@ mod tests { fn can_parse(f: &str) -> Result<Vec<ASN1Block>,ASN1DecodeErr> { let mut fd = File::open(f).unwrap(); let mut buffer = Vec::new(); - fd.read_to_end(&mut buffe...
1
1
1
7134b205d434759e097e200002060bbd095fff7a
Adam Wick
2017-11-14T22:54:10
Factor out OIDs into their own structure, with relevant functions and macros.
diff --git a/src/lib.rs b/src/lib.rs index 76682f0..2c8d7b6 100644 --- a/src/lib.rs +++ b/src/lib.rs @@ -14,7 +14,7 @@ pub enum ASN1Block { BitString(ASN1Class, usize, Vec<u8>), OctetString(ASN1Class, Vec<u8>), Null(ASN1Class), - ObjectIdentifier(ASN1Class, Vec<BigUint>), + ObjectIdentifier(ASN1Cla...
1
64
16
473289159ec3038a9e837913d13212118c57ab4c
Colin Finck
2026-01-24T14:08:08
Fix Rust 1.89+ compatibility. (#46) Rust 1.89 introduced a `try_lock_shared` method with different signature. This PR makes the tests pick up the right `try_lock_shared`.
diff --git a/src/file_ext/sync_impl.rs b/src/file_ext/sync_impl.rs index 4cb31b0..6fcdc1f 100644 --- a/src/file_ext/sync_impl.rs +++ b/src/file_ext/sync_impl.rs @@ -177,7 +177,7 @@ macro_rules! test_mod { false, ); assert_eq!( - file2.try_lock_sh...
1
2
2
9ce618ccfea23b12643e2881fd71894e210aaf0c
Wildan M
2025-09-10T19:14:17
Add redox support (#43)
diff --git a/src/unix/sync_impl.rs b/src/unix/sync_impl.rs index 5721f3a..c5f5f28 100644 --- a/src/unix/sync_impl.rs +++ b/src/unix/sync_impl.rs @@ -38,6 +38,7 @@ macro_rules! allocate { target_os = "openbsd", target_os = "netbsd", target_os = "dragonfly", + target_os =...
1
1
0
9d15e8559e1525567478ad084a95f567e5bda369
al8n
2025-03-08T07:55:38
Update outdated docs
diff --git a/src/file_ext/async_impl.rs b/src/file_ext/async_impl.rs index 885b9de..2ae858a 100644 --- a/src/file_ext/async_impl.rs +++ b/src/file_ext/async_impl.rs @@ -46,12 +46,16 @@ macro_rules! async_file_ext { /// locked. fn lock_exclusive(&self) -> Result<()>; - /// Locks th...
2
16
8
0be8a38421d5d6d1165dbbb6828dde401cce28b0
Fabio Valentini
2025-01-21T16:14:05
port tests from tempdir to tempfile (#35) The tempdir crate is unmaintained, was last updated seven years ago, and pulls in really old versions of some of its dependencies. The tempfile crate is actively maintained and replacing code usages is straightforward.
diff --git a/Cargo.toml b/Cargo.toml index 7490c1c..a1a3ddb 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -45,7 +45,7 @@ async-std = { version = "1", features = ["attributes"] } fs-err2 = { package = "fs-err", version = "2", features = ["io_safety", "tokio"] } fs-err3 = { package = "fs-err", version = "3", features = [...
7
33
33
20620db13aeece32f9b8a9f4811638a84dc2611a
Pino Toscano
2024-11-08T20:58:45
feat: add support for GNU/Hurd (#30) There is no direct fallocate syscall/API available, so use the "emulation" instead.
diff --git a/src/unix/async_impl.rs b/src/unix/async_impl.rs index 5bfa8c1..c73180b 100644 --- a/src/unix/async_impl.rs +++ b/src/unix/async_impl.rs @@ -32,7 +32,8 @@ macro_rules! allocate { target_os = "dragonfly", target_os = "solaris", target_os = "illumos", - target...
2
3
1
46a33cc8650842d6ee6e8cd650fd38979e233188
al8n
2024-11-04T11:20:18
Revert *async APIs
diff --git a/Cargo.toml b/Cargo.toml index 860865b..7c078ab 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -1,7 +1,7 @@ [package] name = "fs4" # NB: When modifying, also modify html_root_url in lib.rs -version = "0.10.0" +version = "0.11.0" rust-version = "1.75.0" authors = ["Dan Burkert <dan@danburkert.com>", "Al Li...
3
2
158
a4c553cef1bae57281e03af8a5f813778fdea5ec
Andrew Voynov
2024-08-19T13:53:04
chore: fixed docs typo
diff --git a/src/file_ext/async_impl.rs b/src/file_ext/async_impl.rs index e1a2158..c253b64 100644 --- a/src/file_ext/async_impl.rs +++ b/src/file_ext/async_impl.rs @@ -46,11 +46,11 @@ macro_rules! async_file_ext { /// locked. fn lock_exclusive(&self) -> Result<()>; - /// Locks th...
2
3
3
32f43f1bd79be9b083ee87d86e5ef4f9f294f807
Al Liu
2024-07-30T05:21:43
Fix document
diff --git a/Cargo.toml b/Cargo.toml index 3a83156..68e6b21 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -1,7 +1,7 @@ [package] name = "fs4" # NB: When modifying, also modify html_root_url in lib.rs -version = "0.9.0" +version = "0.9.1" rust-version = "1.75.0" authors = ["Dan Burkert <dan@danburkert.com>", "Al Liu ...
2
3
3
d1e489668d3833acd0cf3f0f66d6f51201e628aa
thirteenowls
2024-05-25T20:45:54
Fix race in `filesystem_space` test Free space could increase between the calls to `free_space` and `available_space`, making the test fail.
diff --git a/src/file_ext/sync_impl.rs b/src/file_ext/sync_impl.rs index 7b2f0f2..db79373 100644 --- a/src/file_ext/sync_impl.rs +++ b/src/file_ext/sync_impl.rs @@ -94,7 +94,7 @@ mod test { use std::fs; use super::*; - use crate::{allocation_granularity, available_space, free_space, lock_contended_error,...
1
7
4
806a988a5b5fa9c75762b2a35f7fd9b472c3aa7e
thirteenowls
2024-05-25T09:23:31
Fix `statvfs` on Windows for filesystems with more than `2^32 - 1` clusters
diff --git a/src/windows.rs b/src/windows.rs index b241ea8..fd9fbb8 100644 --- a/src/windows.rs +++ b/src/windows.rs @@ -58,7 +58,9 @@ use std::io::{Error, Result}; use std::os::windows::ffi::OsStrExt; use std::path::Path; use windows_sys::Win32::Foundation::ERROR_LOCK_VIOLATION; -use windows_sys::Win32::Storage::Fi...
1
19
7
2f055f890592bcaae7ea97ba1ab1a99a3c827ce1
Al Liu
2024-05-09T08:29:22
Fix warnings
diff --git a/src/lib.rs b/src/lib.rs index 05b8473..9c33ad6 100644 --- a/src/lib.rs +++ b/src/lib.rs @@ -3,6 +3,7 @@ #![cfg_attr(test, feature(test))] #![cfg_attr(docsrs, feature(doc_cfg))] #![cfg_attr(docsrs, allow(unused_attributes))] +#![allow(unexpected_cfgs)] #[cfg(windows)] extern crate windows_sys;
1
1
0
29aeecdd1f5a4460e0191def455d55d9a3b3dc12
Al Liu
2024-04-02T08:36:32
release `0.8.2`
diff --git a/Cargo.toml b/Cargo.toml index 5d16b33..9775d41 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -1,7 +1,7 @@ [package] name = "fs4" # NB: When modifying, also modify html_root_url in lib.rs -version = "0.8.1" +version = "0.8.2" authors = ["Dan Burkert <dan@danburkert.com>", "Al Liu <scygliu1@gmail.com>"] l...
1
1
1
3c4dab9f0475b3ee1bf78a64c9230391880bd003
Melvin Wang
2024-03-29T23:59:53
Update Cargo.toml Use valid SPDX 2.3 license expression
diff --git a/Cargo.toml b/Cargo.toml index 6e3ac20..5d16b33 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -3,7 +3,7 @@ name = "fs4" # NB: When modifying, also modify html_root_url in lib.rs version = "0.8.1" authors = ["Dan Burkert <dan@danburkert.com>", "Al Liu <scygliu1@gmail.com>"] -license = "MIT/Apache-2.0" +lice...
1
1
1
1520cae6f63c3c72dfc924c834172a80095df6c0
Qiu Chaofan
2024-03-05T09:37:07
Enable support for AIX fallocate
diff --git a/src/unix/async_impl.rs b/src/unix/async_impl.rs index 2321ba3..e2d565a 100644 --- a/src/unix/async_impl.rs +++ b/src/unix/async_impl.rs @@ -1,6 +1,7 @@ macro_rules! allocate { ($file: ty) => { #[cfg(any( + target_os = "aix", target_os = "linux", target_os...
2
2
0
baac2dd18994e855004ecc7e95834fb29d6ac66e
Al Liu
2024-02-25T15:34:30
bump up versions
diff --git a/Cargo.toml b/Cargo.toml index ff24480..1d0ec37 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -1,7 +1,7 @@ [package] name = "fs4" # NB: When modifying, also modify html_root_url in lib.rs -version = "0.7.0" +version = "0.7.1" authors = ["Dan Burkert <dan@danburkert.com>", "Al Liu <scygliu1@gmail.com>"] l...
1
7
7
7495961f102318b3b3e22e59e466ba3cec7f0037
Nazar Mokrynskyi
2024-02-24T02:04:06
Fix nightly clippy lints
diff --git a/src/windows/sync_impl.rs b/src/windows/sync_impl.rs index cfe2f26..107f70a 100644 --- a/src/windows/sync_impl.rs +++ b/src/windows/sync_impl.rs @@ -73,7 +73,7 @@ mod test { .read(true) .write(true) .create(true) - .open(&path) + .open(path) ...
1
2
2
ab78dc06adbc6e202aab39d13011e505a99a4043
Duncan Fairbanks
2024-01-24T11:37:30
bump version to 0.8
diff --git a/Cargo.toml b/Cargo.toml index 4c69478..c885c87 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -1,7 +1,7 @@ [package] name = "fs4" # NB: When modifying, also modify html_root_url in lib.rs -version = "0.7.0" +version = "0.8.0" authors = ["Dan Burkert <dan@danburkert.com>", "Al Liu <scygliu1@gmail.com>"] l...
2
2
2
f81666b5139a7d5d8e0d652dcc8aefe8e0b9504e
Duncan Fairbanks
2024-01-24T11:37:17
upgrade smol to 2.0
diff --git a/Cargo.toml b/Cargo.toml index ff24480..4c69478 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -32,7 +32,7 @@ features = [ [dependencies] async-trait = { version = "0.1", optional = true } async-std = { version = "1.12", optional = true } -smol = { version = "1.3", optional = true } +smol = { version = "2.0...
1
1
1
78969ca40f82954e31c41880f4468095defce4b7
al8n
2023-07-03T12:51:49
publish 0.6.6
diff --git a/Cargo.toml b/Cargo.toml index 5841ef6..1ce414f 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -1,7 +1,7 @@ [package] name = "fs4" # NB: When modifying, also modify html_root_url in lib.rs -version = "0.6.5" +version = "0.6.6" authors = ["Dan Burkert <dan@danburkert.com>", "Al Liu <scygliu1@gmail.com>"] l...
2
2
2
820a061b1a677e8dea07fc13c13cbc69e10dfcf5
Jakub Onderka
2023-07-01T08:59:44
Update to rustix 0.38
diff --git a/Cargo.toml b/Cargo.toml index 5457654..5841ef6 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -19,7 +19,7 @@ tokio-async = ["tokio/fs", "async-trait"] smol-async = ["smol", "async-trait"] [target.'cfg(not(windows))'.dependencies] -rustix = { version = "0.37.10", features = ["fs"] } +rustix = { version = "...
3
3
3
a5f947500e08a848ff0c8a6000947368de723486
al8n
2023-05-31T05:06:35
publish 0.6.5
diff --git a/Cargo.toml b/Cargo.toml index a28f24a..5457654 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -1,7 +1,7 @@ [package] name = "fs4" # NB: When modifying, also modify html_root_url in lib.rs -version = "0.6.4" +version = "0.6.5" authors = ["Dan Burkert <dan@danburkert.com>", "Al Liu <scygliu1@gmail.com>"] l...
2
2
2
ac4085b198b7a3d81dae6c1b2e5830e16faab3b5
al8n
2023-05-04T06:10:36
cargo publish 0.6.4
diff --git a/Cargo.toml b/Cargo.toml index 9f2dbb7..af7e6fd 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -1,7 +1,7 @@ [package] name = "fs4" # NB: When modifying, also modify html_root_url in lib.rs -version = "0.6.3" +version = "0.6.4" authors = ["Dan Burkert <dan@danburkert.com>", "Al Liu <scygliu1@gmail.com>"] l...
2
2
2
1ea0b5ce6031e5377615b49cadd10a8dd8b40dbb
Dan Gohman
2023-04-08T05:09:49
Port from winapi to windows-sys. Port from winapi to windows-sys.
diff --git a/Cargo.toml b/Cargo.toml index 1c8a9b8..9e0c687 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -24,8 +24,12 @@ libc = "0.2" [target.'cfg(not(windows))'.dependencies] rustix = { version = "0.35.7", features = ["fs"] } -[target.'cfg(windows)'.dependencies] -winapi = { version = "0.3", features = ["handleapi"...
8
56
47
7b971493feafca76a9448c454b518834c64e98a4
Dan Gohman
2023-01-16T00:05:51
Port macos/ios `fallocate` code from libc to rustix. Rustix supports `fallocate` on macos/ios/etc. now, so use that instead of having a separate copy of the code for implementing it in terms of the libc APIs.
diff --git a/Cargo.toml b/Cargo.toml index 1c8a9b8..2762fd6 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -18,9 +18,6 @@ std-async = ["async-std/async-io", "async-trait"] tokio-async = ["tokio/fs", "async-trait"] smol-async = ["smol", "async-trait"] -[target.'cfg(any(target_os = "macos", target_os = "ios"))'.dependen...
3
10
68
e85f0fdef813f0e4f04973e0110ae5123f76dbf2
Dan Gohman
2023-04-08T04:48:39
Fix compilation on illumos. Add cases for illumos, following solaris, which it is similar to. And update to rustix 0.37.10, which fixes a missing `statvfs` on illumos.
diff --git a/Cargo.toml b/Cargo.toml index 1c8a9b8..168092f 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -22,7 +22,7 @@ smol-async = ["smol", "async-trait"] libc = "0.2" [target.'cfg(not(windows))'.dependencies] -rustix = { version = "0.35.7", features = ["fs"] } +rustix = { version = "0.37.10", features = ["fs"] } ...
3
3
1
a58c36571176275a0c617576ae0b3f9c76e5f5bc
al8n
2023-01-31T02:13:31
bump up version
diff --git a/Cargo.toml b/Cargo.toml index 3df8da2..1c8a9b8 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -1,7 +1,7 @@ [package] name = "fs4" # NB: When modifying, also modify html_root_url in lib.rs -version = "0.6.2" +version = "0.6.3" authors = ["Dan Burkert <dan@danburkert.com>", "Al Liu <scygliu1@gmail.com>"] l...
2
2
2
6115872b510a1c33001d9641e4cf98d6da7b28c4
Ryan Avella
2023-01-05T21:36:58
Don't discard error code from rustix::fallocate. It already abstracts around the differences between fallocate/posix_fallocate, specifically whether the error code is returned directly or in errno.
diff --git a/src/unix/sync_impl.rs b/src/unix/sync_impl.rs index 42dd608..efae99a 100644 --- a/src/unix/sync_impl.rs +++ b/src/unix/sync_impl.rs @@ -24,7 +24,7 @@ pub fn allocate(file: &File, len: u64) -> std::io::Result<()> { let borrowed_fd = BorrowedFd::borrow_raw(file.as_raw_fd()); match fallocate...
1
1
1
50e791095fa2ce2edee223d46ba6b307f49205e3
al8n
2022-07-04T16:02:05
bump up versions
diff --git a/Cargo.toml b/Cargo.toml index e6c2033..3df8da2 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -1,7 +1,7 @@ [package] name = "fs4" # NB: When modifying, also modify html_root_url in lib.rs -version = "0.6.1" +version = "0.6.2" authors = ["Dan Burkert <dan@danburkert.com>", "Al Liu <scygliu1@gmail.com>"] l...
3
4
32
064206457320205eb005b78fbb99d969fb69064e
al8n
2022-07-03T01:42:04
fix windows ci
diff --git a/src/windows/async_impl/async_std_impl.rs b/src/windows/async_impl/async_std_impl.rs index a9d33bb..a5cdb1c 100644 --- a/src/windows/async_impl/async_std_impl.rs +++ b/src/windows/async_impl/async_std_impl.rs @@ -1,5 +1,6 @@ use std::io::{Error, Result}; use std::mem; +use std::os::windows::io::AsRawHandl...
4
4
4
f91c8f3bea322c7d259bcc773232cb9adafcc4c6
al8n
2022-07-03T01:33:56
fix windows ci
diff --git a/src/windows/async_impl/async_std_impl.rs b/src/windows/async_impl/async_std_impl.rs index 5f19e54..a9d33bb 100644 --- a/src/windows/async_impl/async_std_impl.rs +++ b/src/windows/async_impl/async_std_impl.rs @@ -1,6 +1,5 @@ use std::io::{Error, Result}; use std::mem; -use std::os::windows::io::AsRawHandl...
4
0
4
f8088f1738cdfcbbefe22efebf9eaa53fb225dbd
Al
2021-12-31T12:55:40
fix allocate error handle
diff --git a/Cargo.toml b/Cargo.toml index c0ac2b4..0db74cd 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -1,7 +1,7 @@ [package] name = "fs4" # NB: When modifying, also modify html_root_url in lib.rs -version = "0.5.3" +version = "0.5.4" authors = ["Dan Burkert <dan@danburkert.com>", "Al Liu <scygliu1@gmail.com>"] l...
3
3
3
3305ccfab541939cf82fdc1e7552cc26211f13a4
Al
2021-12-31T12:29:44
fix windows
diff --git a/src/windows/async_impl/async_std_impl.rs b/src/windows/async_impl/async_std_impl.rs index 0d71665..df7e929 100644 --- a/src/windows/async_impl/async_std_impl.rs +++ b/src/windows/async_impl/async_std_impl.rs @@ -28,7 +28,7 @@ mod test { use async_std::fs; use std::os::windows::io::AsRawHandle; ...
3
3
3
71094163ab7e90a9a74d01ccb2160f08b43c4147
Al
2021-12-31T12:25:19
fix windows
diff --git a/Cargo.toml b/Cargo.toml index 960400f..9bf7ca4 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -1,7 +1,7 @@ [package] name = "fs4" # NB: When modifying, also modify html_root_url in lib.rs -version = "0.5.1" +version = "0.5.2" authors = ["Dan Burkert <dan@danburkert.com>", "Al Liu <scygliu1@gmail.com>"] l...
7
15
22
9a340454a8292df025de368fc4b310bb736f382f
Marco A L Barbosa
2018-01-06T22:15:04
Add emscripten support (#19)
diff --git a/src/unix.rs b/src/unix.rs index 91867f7..5c2f4f2 100644 --- a/src/unix.rs +++ b/src/unix.rs @@ -98,6 +98,7 @@ pub fn allocated_size(file: &File) -> Result<u64> { #[cfg(any(target_os = "linux", target_os = "freebsd", target_os = "android", + target_os = "emscripten", ...
1
1
0
3133f95c592209eb1adaaf4a99a554db60c2c492
Bastien Orivel
2018-01-06T19:49:41
Bump winapi to 0.3 (#21)
diff --git a/Cargo.toml b/Cargo.toml index be97290..bf99a8c 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -12,8 +12,7 @@ keywords = ["file", "file-system", "lock", "duplicate", "flock"] libc = "0.2.30" [target.'cfg(windows)'.dependencies] -winapi = "0.2" -kernel32-sys = "0.2" +winapi = { version = "0.3", features = [...
3
48
38
7dd3410034ad0e61070804328a224e140e427de8
Lilian Anatolie Moraru
2017-08-27T21:03:11
Update to libc 0.2.30 for emscripten support (#20)
diff --git a/Cargo.toml b/Cargo.toml index feb9f2c..be97290 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -9,7 +9,7 @@ description = "Cross-platform file locks and file duplication." keywords = ["file", "file-system", "lock", "duplicate", "flock"] [target.'cfg(unix)'.dependencies] -libc = "0.2.2" +libc = "0.2.30" ...
1
1
1
2fcedbe044735bbbbfb10b030fcb1f12a8ee51e1
Dan Burkert
2017-06-11T19:25:46
tweak docs
diff --git a/src/lib.rs b/src/lib.rs index ffe49b9..34244d7 100644 --- a/src/lib.rs +++ b/src/lib.rs @@ -120,7 +120,7 @@ pub fn lock_contended_error() -> Error { sys::lock_error() } -/// FsStats contains some common stats about a file system. +/// `FsStats` contains some common stats about a file system. #[der...
2
2
2
0e2d8a3bb370d985bb11395dbf37db191e28be11
Danek Duvall
2017-06-11T18:43:09
Solaris flock (hard-coded switch) (#18)
diff --git a/src/unix.rs b/src/unix.rs index fe11f6b..c8a13e0 100644 --- a/src/unix.rs +++ b/src/unix.rs @@ -47,11 +47,50 @@ pub fn lock_error() -> Error { Error::from_raw_os_error(libc::EWOULDBLOCK) } +#[cfg(not(target_os = "solaris"))] fn flock(file: &File, flag: libc::c_int) -> Result<()> { let ret = u...
1
39
0
e51ea0fdc809614fd1088ce18f6f627e9b2bda96
Jessica Hamilton
2017-04-26T04:28:03
Add Haiku target. (#17)
diff --git a/src/unix.rs b/src/unix.rs index 6afb994..fe11f6b 100644 --- a/src/unix.rs +++ b/src/unix.rs @@ -99,7 +99,8 @@ pub fn allocate(file: &File, len: u64) -> Result<()> { #[cfg(any(target_os = "openbsd", target_os = "netbsd", target_os = "dragonfly", - target_os = "solaris"))] + ...
1
2
1
206defe16b27079cedea4b01a494cc2d1588f5a0
Dan Burkert
2017-02-25T22:52:49
Document duplicate alternative in stdlib
diff --git a/src/lib.rs b/src/lib.rs index 82c9777..ffe49b9 100644 --- a/src/lib.rs +++ b/src/lib.rs @@ -48,6 +48,8 @@ pub trait FileExt { /// The returned file will share the same file position as the original /// file. /// + /// If using rustc version 1.9 or later, prefer using `File::try_clone` to ...
1
2
0
252649313c3f42ad45d027f60ab6162cbae61585
Dan Burkert
2016-12-28T19:15:22
Cast statvfs.f_frsize to u64 fixes #13
diff --git a/src/unix.rs b/src/unix.rs index cd87582..6afb994 100644 --- a/src/unix.rs +++ b/src/unix.rs @@ -125,7 +125,7 @@ pub fn statvfs(path: &Path) -> Result<FsStats> { free_space: stat.f_frsize as u64 * stat.f_bfree as u64, available_space: stat.f_frsize as u64 * stat.f_bavail as...
1
1
1
6af952b9a82c11c3be6f47508a3244498ad6bb8c
Jay
2016-11-19T17:52:44
unify space related functions (#12) * unify space related functions * fix indent * address comment * address comment
diff --git a/src/lib.rs b/src/lib.rs index 895319b..82c9777 100644 --- a/src/lib.rs +++ b/src/lib.rs @@ -118,22 +118,65 @@ pub fn lock_contended_error() -> Error { sys::lock_error() } +/// FsStats contains some common stats about a file system. +#[derive(Clone, Debug, PartialEq, Eq, Hash)] +pub struct FsStats {...
3
72
59
96992de18a2a021178f170bd1a1adec50910461a
Nikita Baksalyar
2016-06-15T02:02:38
Fix compilation on Solaris/Illumos (#8)
diff --git a/src/unix.rs b/src/unix.rs index 874e9a1..62527e1 100644 --- a/src/unix.rs +++ b/src/unix.rs @@ -96,7 +96,8 @@ pub fn allocate(file: &File, len: u64) -> Result<()> { #[cfg(any(target_os = "openbsd", target_os = "netbsd", - target_os = "dragonfly"))] + target_os = "dragonfly",...
1
2
1
d5c221ee41878271be6aa3c175bce5d7aa1bc878
Tshepang Lekhonkhobe
2016-05-29T15:49:33
improve intro (#7) Thanks!
diff --git a/src/lib.rs b/src/lib.rs index bd0c31f..3e517b8 100644 --- a/src/lib.rs +++ b/src/lib.rs @@ -15,7 +15,7 @@ use std::fs::File; use std::io::{Error, Result}; use std::path::Path; -/// Extension trait for `File` providing duplication and locking methods. +/// Extension trait for `std::fs::File` which provi...
1
1
1
ec27edfaed93332fd50cf04fcb4bcf777520d3b8
Michael Neumann
2016-03-14T10:35:25
Fix compilation on DragonFly BSD
diff --git a/src/unix.rs b/src/unix.rs index c6b05ec..874e9a1 100644 --- a/src/unix.rs +++ b/src/unix.rs @@ -95,7 +95,8 @@ pub fn allocate(file: &File, len: u64) -> Result<()> { } #[cfg(any(target_os = "openbsd", - target_os = "netbsd"))] + target_os = "netbsd", + target_os = "dragonfly")...
1
2
1
fec9e37ed11eeba78128a31e513201d63b716c5d
Dan Burkert
2016-02-26T05:55:52
Open created files with writable permissions in Windows tests
diff --git a/src/windows.rs b/src/windows.rs index 0d00b26..8688d03 100644 --- a/src/windows.rs +++ b/src/windows.rs @@ -192,7 +192,7 @@ mod test { fn lock_duplicate_handle_independence() { let tempdir = tempdir::TempDir::new("fs2").unwrap(); let path = tempdir.path().join("fs2"); - let fi...
1
6
6
69bd9aeba7c827639757959136b7d58f4b608121
Dan Burkert
2016-02-17T04:20:24
Open created files with writable permissions in tests
diff --git a/src/lib.rs b/src/lib.rs index 6cd9ef3..bd0c31f 100644 --- a/src/lib.rs +++ b/src/lib.rs @@ -185,9 +185,9 @@ mod test { fn lock_shared() { let tempdir = tempdir::TempDir::new("fs2").unwrap(); let path = tempdir.path().join("fs2"); - let file1 = fs::OpenOptions::new().create(tru...
2
13
13
9c2cbbb30b381823bb6e024adfc876af213e0fbc
Alex Crichton
2016-02-05T03:53:16
Use libc::off_t instead of std::*::off_t The modules in `std` may be slated for change, and in general it's best to keep the libc apis using libc types to guarantee they match up.
diff --git a/src/unix.rs b/src/unix.rs index 33c1131..06c66fc 100644 --- a/src/unix.rs +++ b/src/unix.rs @@ -7,7 +7,6 @@ use std::mem; use std::os::unix::ffi::OsStrExt; use std::os::unix::fs::MetadataExt; use std::os::unix::io::{AsRawFd, FromRawFd}; -use std::os::unix::raw::off_t; use std::path::Path; pub fn dup...
1
2
3
a8506a8198a6e052ac2a6b86a377a2c06b9a33fd
Dan Burkert
2016-01-10T01:22:20
Add cast for platforms where c_char is signed, fixes #1
diff --git a/src/unix.rs b/src/unix.rs index df72276..33c1131 100644 --- a/src/unix.rs +++ b/src/unix.rs @@ -114,7 +114,8 @@ fn statvfs<P>(path: P) -> Result<libc::statvfs> where P: AsRef<Path> { unsafe { let mut stat: libc::statvfs = mem::zeroed(); - if libc::statvfs(cstr.as_ptr(), &mut stat) ==...
1
2
1
3d4a73a71c6e64ce3e58301f29554838b116b56b
Dan Burkert
2015-11-07T17:43:30
bump dependencies
diff --git a/Cargo.toml b/Cargo.toml index eac833a..ef5fcd0 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -14,9 +14,9 @@ exclude = [ ] [dependencies] -libc = "0.1" +libc = "0.2" winapi = "0.2" -kernel32-sys = "0.1" +kernel32-sys = "0.2" [dev-dependencies] tempdir = "0.3" diff --git a/src/unix.rs b/src/unix.rs in...
2
3
3
a5c574cb73808e60261db56ccf07c742ad7a5560
Dan Burkert
2015-10-20T04:58:06
lock_*_nonblock -> try_lock_*
diff --git a/src/lib.rs b/src/lib.rs index fbbdd68..c6283a0 100644 --- a/src/lib.rs +++ b/src/lib.rs @@ -8,9 +8,9 @@ use unix::{ duplicate, lock_error, lock_exclusive, - lock_exclusive_nonblock, lock_shared, - lock_shared_nonblock, + try_lock_exclusive, + try_lock_shared, unlock, }...
3
30
30
fa86f0332a860b95a1dfd15694c2261a2a370914
Dan Burkert
2015-09-01T03:39:03
Add Windows implementation.
diff --git a/Cargo.toml b/Cargo.toml index 5b66c1e..41045ea 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -5,6 +5,8 @@ authors = ["Dan Burkert <dan@danburkert.com>"] [dependencies] libc = "*" +winapi = "*" +kernel32-sys = "*" [dev-dependencies] tempdir = "*" diff --git a/src/lib.rs b/src/lib.rs index d2ce7d7..162...
4
312
140
c995ee69d793f7ad585f58cc9bb68f888b7ff8c0
Dan Burkert
2015-08-31T06:54:24
benchmarks
diff --git a/src/lib.rs b/src/lib.rs index 4752dc3..d2ce7d7 100644 --- a/src/lib.rs +++ b/src/lib.rs @@ -1,3 +1,5 @@ +#![cfg_attr(test, feature(test))] + #[cfg(unix)] mod unix; #[cfg(unix)] @@ -13,7 +15,7 @@ use unix::{ use std::fs::File; use std::io::Result; -/// Extension trait for `File`s. +/// Extension trai...
2
71
2
61bacc5f8cd26e1285035fdd481a59e1922e88be
Ivan Molodetskikh
2025-06-22T05:29:44
Update tracy-client (#92)
diff --git a/profiling/Cargo.toml b/profiling/Cargo.toml index b8c0a61..05762cc 100644 --- a/profiling/Cargo.toml +++ b/profiling/Cargo.toml @@ -17,7 +17,7 @@ rust-version = "1.60" puffin = { version = "0.19", optional = true } optick = { version = "1.3", optional = true } tracing = { version = "0.1", optional = tru...
1
1
1
079ee47ffb7f681567d951216911755b3fb9d16b
Philip Degarmo
2024-10-13T03:46:39
Fix case where span.enter() is not called on tracing backend, several other minor changes (#83) - Address warnings of unused return values with the tracy backend - Rename local variables to begin with _ to avoid polluting namespace - Remove a stale comment - Run cargo fmt
diff --git a/demo-puffin/src/main.rs b/demo-puffin/src/main.rs index 2748641..77ecbaa 100644 --- a/demo-puffin/src/main.rs +++ b/demo-puffin/src/main.rs @@ -30,7 +30,7 @@ fn some_inner_function(_iteration_index: usize) { burn_time(1); } -fn some_macro_function(){ +fn some_macro_function() { profiling::func...
5
21
20
7010df4207bad845d790023c8076316bd0635143
Ted de Munnik
2024-09-29T14:21:14
Add tracing-tracy frame marker in profiling::finish_frame!() for the tracing backend (#82)
diff --git a/profiling/src/tracing_impl.rs b/profiling/src/tracing_impl.rs index 9328b01..04706ae 100644 --- a/profiling/src/tracing_impl.rs +++ b/profiling/src/tracing_impl.rs @@ -18,5 +18,7 @@ macro_rules! register_thread { #[macro_export] macro_rules! finish_frame { - () => {}; + () => { + $crate::t...
1
3
1
9fe80e828bdd2453edf49c2b312c869b8ba07a43
Ted de Munnik
2024-09-29T14:19:19
Bump tracing-tracy and tracing-subscriber to latest in simple example (#79)
diff --git a/profiling/Cargo.toml b/profiling/Cargo.toml index 99635b6..5ab908e 100644 --- a/profiling/Cargo.toml +++ b/profiling/Cargo.toml @@ -27,8 +27,8 @@ lazy_static = "1" log = "0.4" env_logger = "0.6" -tracing-tracy = { version = "0.4.0" } -tracing-subscriber = { version = "0.2" } +tracing-tracy = { version ...
2
3
3
00014c3352c867b87b474da8074650be70dd46d2
Ted de Munnik
2024-09-29T00:14:41
Use the built in function name for tracy instead of pulling it from the proc macro (#78)
diff --git a/profiling-procmacros/src/lib.rs b/profiling-procmacros/src/lib.rs index 4e37e8f..796bd4a 100644 --- a/profiling-procmacros/src/lib.rs +++ b/profiling-procmacros/src/lib.rs @@ -165,12 +165,12 @@ fn impl_block( #[cfg(feature = "profile-with-tracy")] fn impl_block( body: &syn::Block, - instrumented_...
1
2
2
398c019de6e217762d88d38a88e48b21ebb40083
Philip Degarmo
2024-09-28T23:49:08
Fix CI issue caused by rustc throwing new errors for unexpected cfg names (#81)
diff --git a/demo-puffin/src/main.rs b/demo-puffin/src/main.rs index d50c576..dd19e59 100644 --- a/demo-puffin/src/main.rs +++ b/demo-puffin/src/main.rs @@ -45,10 +45,6 @@ fn some_other_function(iterations: usize) { format!("other data {}", i).as_str() ); - // Mixing general p...
1
0
4
d399de0db8419a96224631a727476095d4c86bdd
Ted de Munnik
2024-09-28T23:45:21
Update dependencies for demo-puffin (#77)
diff --git a/demo-puffin/Cargo.toml b/demo-puffin/Cargo.toml index e548d42..f153511 100644 --- a/demo-puffin/Cargo.toml +++ b/demo-puffin/Cargo.toml @@ -20,11 +20,11 @@ categories = ["development-tools::profiling"] [dependencies] profiling = { path = "../profiling", features = ["profile-with-puffin"] } -puffin = "0...
2
5
5
f04ef4d22867a9626862838d720d47c9beee885e
Josh Channings
2024-02-17T13:43:25
Bump tracy-client to 0.17 (#67) Same upstream tracy compatibility as 0.16.4
diff --git a/profiling/Cargo.toml b/profiling/Cargo.toml index ee8bdf8..47203d1 100644 --- a/profiling/Cargo.toml +++ b/profiling/Cargo.toml @@ -18,7 +18,7 @@ exclude = ["/examples", "/screenshots"] puffin = { version = "0.19", optional = true } optick = { version = "1.3", optional = true } tracing = { version = "0....
1
1
1
8cce6535d7187e70b5d4c8f4b611d82a84e80859
John Wells
2024-01-30T05:46:01
Update puffin to v0.19 (#64)
diff --git a/demo-puffin/Cargo.toml b/demo-puffin/Cargo.toml index 950606a..ca42f7d 100644 --- a/demo-puffin/Cargo.toml +++ b/demo-puffin/Cargo.toml @@ -20,11 +20,11 @@ categories = ["development-tools::profiling"] [dependencies] profiling = { path = "../profiling", features = ["profile-with-puffin"] } -puffin = "0...
2
5
5
709b07f7ab9e0f71727a9ef36012e189971a23d3
Emil Ernerfeldt
2023-12-20T04:52:08
Only depend on profiling-procmacros if the 'procmacros' feature was set (#61)
diff --git a/profiling/Cargo.toml b/profiling/Cargo.toml index 3d7b8a3..cec6252 100644 --- a/profiling/Cargo.toml +++ b/profiling/Cargo.toml @@ -7,6 +7,7 @@ description = "This crate provides a very thin abstraction over other profiler c license = "MIT OR Apache-2.0" readme = "../README.md" repository = "https://git...
1
12
5
9d3613cbe031e2cc726068dab4e2e2fc7276a7c0
Yutao Yuan
2023-07-22T21:44:32
Bump syn to 2.0 (#53)
diff --git a/profiling-procmacros/Cargo.toml b/profiling-procmacros/Cargo.toml index c60145a..411666d 100644 --- a/profiling-procmacros/Cargo.toml +++ b/profiling-procmacros/Cargo.toml @@ -15,7 +15,7 @@ categories = ["development-tools::profiling"] [dependencies] quote = { version = "1.0", default-features = false ...
1
1
1
71b97fe1fa4197b743ad760eb373da3a91637586
Philip Degarmo
2023-04-16T14:08:14
Bump tracy-client to 0.15 (#51) Co-authored-by: Imbris <imbrisf@gmail.com>
diff --git a/Cargo.toml b/Cargo.toml index ba7f915..e315baa 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -24,7 +24,7 @@ exclude = ["/examples", "/screenshots"] puffin = { version = "0.12.1", optional = true } optick = { version = "1.3", optional = true } tracing = { version = "0.1", optional = true } -tracy-client = ...
2
3
3
5f3fe75cd0426afd2bd0213ef8f20706fbc20e1f
Philip Degarmo
2023-03-18T03:02:56
Add no_std (#49) * add no_std * fix clippy lint
diff --git a/examples/puffin/renderer.rs b/examples/puffin/renderer.rs index 34be182..7d855b3 100644 --- a/examples/puffin/renderer.rs +++ b/examples/puffin/renderer.rs @@ -339,7 +339,7 @@ impl Renderer { ), &IMGUI_VERTEX_LAYOUT, )?; - command_buffer...
2
5
1
250b82d1bd146d5c08cc9247cf7d5e22f99a7def
Pâris DOUADY
2022-07-14T15:48:30
Do not package big files in the crate (#39)
diff --git a/Cargo.toml b/Cargo.toml index 6ad3ba4..a6e4004 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -16,6 +16,7 @@ repository = "https://github.com/aclysma/profiling" homepage = "https://github.com/aclysma/profiling" keywords = ["performance", "profiling"] categories = ["development-tools::profiling"] +exclude =...
1
1
0
59fc51454c9a1e086289363ba1f26ab99626f6dd
Imbris
2022-05-22T19:09:02
Update tracy_client to 0.13 (#36) * Update tracy_client to 0.13.x * tracy_client now requires that the client is started before instrumentation APIs are invoked. This can be done via `tracy_client::Client::start();` * The updated tracy impl mirrors patterns used internally in some of the new macros introduc...
diff --git a/Cargo.toml b/Cargo.toml index 2658870..2f14ec2 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -23,7 +23,7 @@ categories = ["development-tools::profiling"] puffin = { version = "0.12.1", optional = true } optick = { version = "1.3", optional = true } tracing = { version = "0.1", optional = true } -tracy-cli...
5
69
8