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
056cb003d19a6deb58214a041ee76d62716524c2
Matouš Dzivjak
2023-02-05T11:23:27
feat(windows): use std Command Use std `Command` instead of `ShellExecuteW` from windows sys crate. This change was already attempted in: https://github.com/Byron/open-rs/issues/25 and later reverted in: https://github.com/Byron/open-rs/pull/27 and it it seems that it didn't work due to incorrect usage of `explorer` ...
diff --git a/Cargo.toml b/Cargo.toml index 268168b..e37dcb2 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -16,8 +16,5 @@ test = false doc = false name = "open" -[target.'cfg(windows)'.dependencies] -windows-sys = { version = "0.42", features = ["Win32_UI_Shell", "Win32_Foundation", "Win32_UI_WindowsAndMessaging"] } -...
2
12
32
4de95c73503b19f810d7e669b73e261b1004e689
Nikhil Benesch
2022-11-20T19:15:27
Upgrade to windows-sys v0.42 This time with the required fix to account for the changes in windows-sys. See #57 and #58.
diff --git a/Cargo.toml b/Cargo.toml index 4350ced..09e8b1a 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -17,7 +17,7 @@ doc = false name = "open" [target.'cfg(windows)'.dependencies] -windows-sys = { version = "0.36", features = ["Win32_UI_Shell", "Win32_Foundation"] } +windows-sys = { version = "0.42", features = [...
2
2
5
2aff3bd2a2e917377ef10dcc4104c6aaf5895bd4
Sebastian Thiel
2022-11-20T17:33:30
Revert "Upgrade to windows-sys v0.42.0"
diff --git a/Cargo.toml b/Cargo.toml index bced9c2..4350ced 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -17,7 +17,7 @@ doc = false name = "open" [target.'cfg(windows)'.dependencies] -windows-sys = { version = "0.42", features = ["Win32_UI_Shell", "Win32_Foundation"] } +windows-sys = { version = "0.36", features = [...
1
1
1
aba0a628b1bf1be365fdbe2bc0200d0c98c7a2bf
Nikhil Benesch
2022-11-20T17:04:18
Upgrade to windows-sys v0.42.0 To avoid duplicate dependencies in downstream crates.
diff --git a/Cargo.toml b/Cargo.toml index 881a525..5631d1f 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -17,7 +17,7 @@ doc = false name = "open" [target.'cfg(windows)'.dependencies] -windows-sys = { version = "0.36", features = ["Win32_UI_Shell", "Win32_Foundation"] } +windows-sys = { version = "0.42", features = [...
1
1
1
e0d596880cd1d746d80927155092827614a7a3ef
Sebastian Thiel
2022-09-16T01:54:15
refactor
diff --git a/src/windows.rs b/src/windows.rs index 57298e4..b759700 100644 --- a/src/windows.rs +++ b/src/windows.rs @@ -1,4 +1,9 @@ -use std::{ffi::{OsStr,OsString}, io, os::windows::ffi::OsStrExt, ptr}; +use std::{ + ffi::{OsStr, OsString}, + io, + os::windows::ffi::OsStrExt, + ptr, +}; use std::os::ra...
1
12
6
1ab9bc37a0fc04d9fa033245d0c44392f2a2912a
Benjamin Lemelin
2022-09-14T20:43:16
Fixed issue on Windows where a space in a path could cause problems with specific programs.
diff --git a/src/windows.rs b/src/windows.rs index 5ff175e..57298e4 100644 --- a/src/windows.rs +++ b/src/windows.rs @@ -1,4 +1,4 @@ -use std::{ffi::OsStr, io, os::windows::ffi::OsStrExt, ptr}; +use std::{ffi::{OsStr,OsString}, io, os::windows::ffi::OsStrExt, ptr}; use std::os::raw::c_int; use windows_sys::Win32::U...
1
8
2
fe70aad1ee0c792b83e1c5faabda8d2c142cdabe
Sebastian Thiel
2022-07-17T23:55:41
fix: Improve documentation about blocking behaviour. (#51)
diff --git a/src/lib.rs b/src/lib.rs index bed2b13..256ea15 100644 --- a/src/lib.rs +++ b/src/lib.rs @@ -1,8 +1,8 @@ -//! Use this library to open a path or URL using the program configured on the system. +//! Use this library to open a path or URL using the program configured on the system in a non-blocking fashion. ...
1
16
4
df358d296fc40801e970654bf2b689577637db5e
Sebastian Thiel
2022-06-12T01:32:01
fix: deprecate `that_in_background()` as `that()` is definitely non-blocking now. Note that we keep `with_in_background()` as it's unclear if a custom launcher blocks or not.
diff --git a/src/lib.rs b/src/lib.rs index c9029fd..bed2b13 100644 --- a/src/lib.rs +++ b/src/lib.rs @@ -119,16 +119,18 @@ pub fn with<T: AsRef<OsStr>>(path: T, app: impl Into<String>) -> io::Result<()> os::with(path, app) } -/// Open path with the default application in a new thread, which is useful if -/// th...
1
5
3
475f0021071fa1498a0fb5ca7d7336a3f4a35b7f
Sebastian Thiel
2022-06-12T01:13:37
refactor Make clear which operating systems we support in the file system.
diff --git a/src/haiku.rs b/src/haiku.rs new file mode 100644 index 0000000..38bbf33 --- /dev/null +++ b/src/haiku.rs @@ -0,0 +1,17 @@ +use std::{ffi::OsStr, io, process::Command}; + +use crate::{CommandExt, IntoResult}; + +pub fn that<T: AsRef<OsStr>>(path: T) -> io::Result<()> { + Command::new("/bin/open") + ...
6
193
198
0bdc6d64ed425b2627a7ba17614f44ba686536fb
Sebastian Thiel
2022-06-12T01:09:10
fix!: Assure `that(…)` is non-blocking on linux This change goes hand in hand with removing additional information from the error case which was the reason for the blocking issue on linux. Note that the top-level `Result` type was also removed.
diff --git a/src/lib.rs b/src/lib.rs index 695b725..6ccf2f5 100644 --- a/src/lib.rs +++ b/src/lib.rs @@ -72,12 +72,10 @@ compile_error!("open is not supported on this platform"); use std::{ ffi::OsStr, io, - process::{Command, Output, Stdio}, + process::{Command, Stdio}, thread, }; -type Result...
1
54
74
a95a2881064ec1a348031b2050d2873df2def31e
Arlo Siemsen
2022-06-02T17:06:03
Switch to windows-sys windows-sys exposes the Windows API from machine-generated code based on Windows metadata. The crate is provided by Microsoft and has generally faster compile time than winapi.
diff --git a/Cargo.toml b/Cargo.toml index 30a938d..a68f35e 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -17,7 +17,7 @@ doc = false name = "open" [target.'cfg(windows)'.dependencies] -winapi = { version = "0.3", features = ["shellapi"] } +windows-sys = { version = "0.36", features = ["Win32_UI_Shell", "Win32_Foundat...
2
6
6
85f4dfdafe6119af5b3a5d8f079279818d3d61ee
Jessica Hamilton
2022-04-15T01:32:48
haiku: add platform support
diff --git a/src/lib.rs b/src/lib.rs index c0941cd..6c30d7f 100644 --- a/src/lib.rs +++ b/src/lib.rs @@ -38,6 +38,9 @@ use macos as os; #[cfg(target_os = "ios")] use ios as os; +#[cfg(target_os = "haiku")] +use haiku as os; + #[cfg(any( target_os = "linux", target_os = "android", @@ -62,6 +65,7 @@ use un...
1
25
0
9441d6c87419f94e0ebaffdf69f9b01f0aec4ddb
bear
2022-03-05T02:26:51
Revert rust edition version
diff --git a/Cargo.toml b/Cargo.toml index be47543..baf0d33 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -4,7 +4,7 @@ name = "open" version = "2.1.0" authors = ["Sebastian Thiel <byronimo@gmail.com>"] license = "MIT" -edition = "2021" +edition = "2018" readme = "README.md" description = "Open a path or URL using th...
1
1
1
2601e4eff11a77a7ccd5acfa3215eb76450fe18c
bear
2022-03-05T02:00:11
Update to 2021 edition and remove Sized bound
diff --git a/Cargo.toml b/Cargo.toml index baf0d33..be47543 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -4,7 +4,7 @@ name = "open" version = "2.1.0" authors = ["Sebastian Thiel <byronimo@gmail.com>"] license = "MIT" -edition = "2018" +edition = "2021" readme = "README.md" description = "Open a path or URL using th...
2
13
13
5d43c13e5418f1d34b44cab71ee7306402fe5823
David Cantrell
2022-02-21T21:06:10
add Illumos support
diff --git a/src/lib.rs b/src/lib.rs index dbb928b..e1d9b46 100644 --- a/src/lib.rs +++ b/src/lib.rs @@ -45,6 +45,7 @@ use ios as os; target_os = "dragonfly", target_os = "netbsd", target_os = "openbsd", + target_os = "illumos", target_os = "solaris" ))] use unix as os; @@ -56,6 +57,7 @@ use un...
1
3
0
8f7c92ab1adf936cd43e4ba0eb1934e2c73763f7
rhysd
2022-02-13T13:07:47
use full path for `open` command on macOS
diff --git a/src/lib.rs b/src/lib.rs index 43ac42e..dbb928b 100644 --- a/src/lib.rs +++ b/src/lib.rs @@ -272,14 +272,14 @@ mod macos { use crate::{CommandExt, IntoResult, Result}; pub fn that<T: AsRef<OsStr> + Sized>(path: T) -> Result { - Command::new("open") + Command::new("/usr/bin/open") ...
1
2
2
30a144ac15acffbc78005cd67d3f783aa2526498
Sebastian Thiel
2021-11-30T23:55:30
fix: Prevent deadlocks due to filled pipe on stderr (#85)
diff --git a/src/lib.rs b/src/lib.rs index 0b78a9a..43ac42e 100644 --- a/src/lib.rs +++ b/src/lib.rs @@ -184,18 +184,18 @@ impl CommandExt for Command { .stderr(Stdio::piped()) .spawn()?; - let status = process.wait()?; - - // Read up to 256 bytes from stderr. + // Consu...
1
8
8
066a591823ddebb2904959b6395bc945c22ba213
Sebastian Thiel
2021-08-16T00:06:54
Release open v2.0.1
diff --git a/Cargo.toml b/Cargo.toml index bedf841..9881a04 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -1,7 +1,7 @@ [package] name = "open" -version = "2.0.0" +version = "2.0.1" authors = ["Sebastian Thiel <byronimo@gmail.com>"] license = "MIT" edition = "2018"
1
1
1
7c9765891b86d5d6168556e8f5363641f57e130d
apogeeoak
2021-08-15T18:39:53
Add no_run to documentation examples.
diff --git a/src/lib.rs b/src/lib.rs index b85c0b2..0b78a9a 100644 --- a/src/lib.rs +++ b/src/lib.rs @@ -76,7 +76,7 @@ type Result = io::Result<()>; /// /// # Examples /// -/// ``` +/// ```no_run /// let path = "http://rust-lang.org"; /// /// match open::that(path) { @@ -97,7 +97,7 @@ pub fn that<T: AsRef<OsStr> ...
1
2
2
bc2e36f5d61b81974420cd62650d743afd4b6824
Sebastian Thiel
2021-07-25T02:42:44
(cargo-release) version 2.0.0
diff --git a/Cargo.toml b/Cargo.toml index de51af9..bedf841 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -1,7 +1,7 @@ [package] name = "open" -version = "1.7.1" +version = "2.0.0" authors = ["Sebastian Thiel <byronimo@gmail.com>"] license = "MIT" edition = "2018"
1
1
1
668734ee8d4a3b3c48c9d3ad892280ce8e71f943
apogeeoak
2021-07-24T18:00:38
Encode unsuccessful exit status in Err.
diff --git a/src/lib.rs b/src/lib.rs index b8ca8ad..0e36856 100644 --- a/src/lib.rs +++ b/src/lib.rs @@ -2,53 +2,33 @@ //! //! # Usage //! -//! The following should open the given URL in a web browser +//! Open the given URL in the default web browser. //! -//! ```test_harness,no_run -//! extern crate open; -//! -/...
2
141
122
c5c0bf7ca070fb81fbbb1bd06d51b490a8f8bf1a
Sebastian Thiel
2021-07-17T02:38:11
(cargo-release) version 1.7.1
diff --git a/Cargo.toml b/Cargo.toml index b3f3568..de51af9 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -1,7 +1,7 @@ [package] name = "open" -version = "1.7.0" +version = "1.7.1" authors = ["Sebastian Thiel <byronimo@gmail.com>"] license = "MIT" edition = "2018"
1
1
1
1dfb7892554087ab07c7c0da8ef863d368e109e3
Sebastian Thiel
2021-07-17T02:31:45
Be bold and assert Two devs think this case should never be encountered, so let's put it to the test with `expect()`
diff --git a/src/lib.rs b/src/lib.rs index f740f29..b8ca8ad 100644 --- a/src/lib.rs +++ b/src/lib.rs @@ -280,7 +280,7 @@ mod unix { unsuccessful .or(error) - .unwrap_or_else(|| Err(io::Error::from(io::ErrorKind::Other))) + .expect("successful cases don't get here") } ...
1
1
1
5bc5e8e739915d4850d4a973d9cf13591aa337cc
Sebastian Thiel
2021-07-16T06:51:03
cargo fmt
diff --git a/src/lib.rs b/src/lib.rs index d8832f9..f740f29 100644 --- a/src/lib.rs +++ b/src/lib.rs @@ -283,7 +283,10 @@ mod unix { .unwrap_or_else(|| Err(io::Error::from(io::ErrorKind::Other))) } - pub fn with<T: AsRef<OsStr> + Sized>(path: T, app: impl Into<String>) -> io::Result<ExitStatus> {...
1
4
1
428ff979979760132d7c583df6834c3349132350
apogeeoak
2021-07-15T21:17:55
Improve support for wsl.
diff --git a/Cargo.toml b/Cargo.toml index 3538597..b3f3568 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -20,4 +20,4 @@ name = "open" winapi = { version = "0.3", features = ["shellapi"] } [target.'cfg(all(unix, not(macos)))'.dependencies] -which = "4" +pathdiff = "0.2.0" diff --git a/src/lib.rs b/src/lib.rs index 13...
2
58
29
215227a3385aa2624d32567eebb08af49e258b60
Sebastian Thiel
2021-07-16T07:11:43
cargo fmt
diff --git a/src/main.rs b/src/main.rs index 63ab93e..66ca5ff 100644 --- a/src/main.rs +++ b/src/main.rs @@ -12,7 +12,9 @@ fn main() { match open::that(&path_or_url) { Ok(status) if status.success() => (), Ok(status) => match status.code() { - Some(code) => print_error_and_exit(code, &...
1
3
1
4f87a7888049b182ede9e00a057c2cc625152ef9
Sebastian Thiel
2021-07-16T07:09:55
clarify what the error handler does
diff --git a/src/main.rs b/src/main.rs index 3eec851..63ab93e 100644 --- a/src/main.rs +++ b/src/main.rs @@ -12,14 +12,14 @@ fn main() { match open::that(&path_or_url) { Ok(status) if status.success() => (), Ok(status) => match status.code() { - Some(code) => open_error(code, &path_or_...
1
4
4
d2d35af2f582249030fc569854450ac12e3c08d4
apogeeoak
2021-07-15T20:48:47
Handle unsuccessful exit status.
diff --git a/src/main.rs b/src/main.rs index f800ad1..3eec851 100644 --- a/src/main.rs +++ b/src/main.rs @@ -1,28 +1,28 @@ -extern crate open; - -use std::{ - env, - io::{stderr, Write}, - process, -}; +use std::{env, process}; fn main() { let path_or_url = match env::args().nth(1) { Some(arg)...
1
17
17
ac09da180256c5974427313b845b928199faf913
Sebastian Thiel
2021-04-18T09:40:25
(cargo-release) version 1.7.0
diff --git a/Cargo.toml b/Cargo.toml index 0b084db..3538597 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -1,7 +1,7 @@ [package] name = "open" -version = "1.6.0" +version = "1.7.0" authors = ["Sebastian Thiel <byronimo@gmail.com>"] license = "MIT" edition = "2018"
1
1
1
6a1766a602fa3354827b06d7b5dbf8f694b86690
Sebastian Thiel
2021-04-18T09:34:44
Remove unnecessary allocation
diff --git a/src/lib.rs b/src/lib.rs index fb148cc..1367e85 100644 --- a/src/lib.rs +++ b/src/lib.rs @@ -258,7 +258,7 @@ mod unix { .ok_or(Error::from_raw_os_error(0)) // If not found, return err .and_then(|program| { // If found run the handler - if program.to_...
1
1
1
68613a5cabc1e650ab36ce5c2802c1b29e6af569
Sebastian Thiel
2021-03-10T15:33:56
(cargo-release) version 1.6.0
diff --git a/Cargo.toml b/Cargo.toml index a75ada0..0b084db 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -1,7 +1,7 @@ [package] name = "open" -version = "1.5.1" +version = "1.6.0" authors = ["Sebastian Thiel <byronimo@gmail.com>"] license = "MIT" edition = "2018"
1
1
1
c058966e5ec4cbd52c7cb50e5ee29afdac08cc15
Sebastian Thiel
2021-03-10T15:33:25
more coherent ordering of target_os attributes
diff --git a/src/lib.rs b/src/lib.rs index 6253586..d4d0ba6 100644 --- a/src/lib.rs +++ b/src/lib.rs @@ -70,15 +70,15 @@ pub use ios::{that, with}; pub use unix::{that, with}; #[cfg(not(any( - target_os = "dragonfly", + target_os = "linux", target_os = "android", target_os = "freebsd", - target_o...
1
4
4
ef9170527d6e9eb58e2b11e73e2756ccbc6b170b
Dario Vladovic
2021-03-10T14:43:19
Bring back Android support
diff --git a/src/lib.rs b/src/lib.rs index 192c53c..3103428 100644 --- a/src/lib.rs +++ b/src/lib.rs @@ -57,6 +57,7 @@ pub use macos::{that, with}; #[cfg(any( target_os = "linux", + target_os = "android", target_os = "freebsd", target_os = "dragonfly", target_os = "netbsd", @@ -188,6 +189,7 @@...
1
2
0
00119a7e5b00889828ab9d38dd5959a519f22b1d
aspen
2021-03-08T20:22:09
Add iOS support
diff --git a/src/lib.rs b/src/lib.rs index 192c53c..85ddf1a 100644 --- a/src/lib.rs +++ b/src/lib.rs @@ -55,6 +55,9 @@ pub use windows::{that, with}; #[cfg(target_os = "macos")] pub use macos::{that, with}; +#[cfg(target_os = "ios")] +pub use ios::{that, with}; + #[cfg(any( target_os = "linux", target_os...
1
45
0
330c2d02f92e3660a86158713a9a9c3aba542094
Sebastian Thiel
2021-03-03T15:10:48
run cargo-fmt
diff --git a/src/lib.rs b/src/lib.rs index 9d12de8..192c53c 100644 --- a/src/lib.rs +++ b/src/lib.rs @@ -90,7 +90,7 @@ mod windows { io, os::windows::{ffi::OsStrExt, process::ExitStatusExt}, process::ExitStatus, - ptr + ptr, }; use winapi::ctypes::c_int;
1
1
1
147f428762c84d0353644b5b846756ac38b29670
Sebastian Thiel
2021-03-03T15:07:59
(cargo-release) version 1.5.1
diff --git a/Cargo.toml b/Cargo.toml index 0182bcd..a75ada0 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -1,7 +1,7 @@ [package] name = "open" -version = "1.5.0" +version = "1.5.1" authors = ["Sebastian Thiel <byronimo@gmail.com>"] license = "MIT" edition = "2018"
1
1
1
67ea2950aa2c478c8cd63764145ad53ad55bdd11
Sebastian Thiel
2021-02-28T03:00:38
minor refactor
diff --git a/src/lib.rs b/src/lib.rs index d0647f0..443fa7d 100644 --- a/src/lib.rs +++ b/src/lib.rs @@ -159,7 +159,6 @@ mod windows { #[cfg(target_os = "macos")] mod macos { - use std::{ ffi::OsStr, io::Result, @@ -194,7 +193,6 @@ mod macos { target_os = "solaris" ))] mod unix { - ...
1
0
2
7ff85da679de7cd17155c4ea27d0f89fda6dff0a
hybras
2021-03-03T13:55:16
Revert "Add missing Command import" This reverts commit c9102785d58cc955595eb189bd89a2ff82a539f0.
diff --git a/src/lib.rs b/src/lib.rs index 2c87321..d0647f0 100644 --- a/src/lib.rs +++ b/src/lib.rs @@ -88,7 +88,7 @@ mod windows { use std::ffi::OsStr; use std::io; use std::os::windows::{ffi::OsStrExt, process::ExitStatusExt}; - use std::process::{Command, ExitStatus}; + use std::process::ExitSt...
1
1
1
b2a79f6b93feef3a59ce57d865334d757e642540
hybras
2021-03-03T13:49:22
Revert "Use the file explorer to open windows url's" This reverts commit 45454254b6e07fd88e398e8de86b55863f369373.
diff --git a/src/lib.rs b/src/lib.rs index 0a0b2ec..2c87321 100644 --- a/src/lib.rs +++ b/src/lib.rs @@ -107,7 +107,25 @@ mod windows { } pub fn that<T: AsRef<OsStr> + Sized>(path: T) -> io::Result<ExitStatus> { - Command::new("explorer").arg(path).spawn()?.wait() + const SW_SHOW: c_int = 5; +...
1
19
1
3507b55dcaa30db5673cbe8b7a405db4f00245ac
hybras
2021-02-27T22:33:05
Remove unneeded pub
diff --git a/src/lib.rs b/src/lib.rs index f3ae818..0a0b2ec 100644 --- a/src/lib.rs +++ b/src/lib.rs @@ -94,7 +94,7 @@ mod windows { use winapi::ctypes::c_int; use winapi::um::shellapi::ShellExecuteW; - pub fn convert_path(path: &OsStr) -> io::Result<Vec<u16>> { + fn convert_path(path: &OsStr) -> io::...
1
1
1
c9102785d58cc955595eb189bd89a2ff82a539f0
hybras
2021-02-24T01:35:55
Add missing Command import Silly me
diff --git a/src/lib.rs b/src/lib.rs index 238a649..f3ae818 100644 --- a/src/lib.rs +++ b/src/lib.rs @@ -88,7 +88,7 @@ mod windows { use std::ffi::OsStr; use std::io; use std::os::windows::{ffi::OsStrExt, process::ExitStatusExt}; - use std::process::ExitStatus; + use std::process::{Command, ExitSta...
1
1
1
45454254b6e07fd88e398e8de86b55863f369373
hybras
2021-02-23T05:55:41
Use the file explorer to open windows url's Specific to open::that
diff --git a/src/lib.rs b/src/lib.rs index ac11a02..238a649 100644 --- a/src/lib.rs +++ b/src/lib.rs @@ -107,25 +107,7 @@ mod windows { } pub fn that<T: AsRef<OsStr> + Sized>(path: T) -> io::Result<ExitStatus> { - const SW_SHOW: c_int = 5; - - let path = convert_path(path.as_ref())?; - ...
1
1
19
ef8ab99d65ce7baf03d43304b3c0cb48e816e411
hybras
2021-02-19T18:15:14
Use which in non-macOS unix
diff --git a/Cargo.toml b/Cargo.toml index 8dfa70e..88003d0 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -18,3 +18,6 @@ name = "open" [target.'cfg(windows)'.dependencies] winapi = { version = "0.3", features = ["shellapi"] } + +[target.'cfg(all(unix, not(macos)))'.dependencies] +which = "4" \ No newline at end of fi...
2
18
17
204f0ca89f522ca4e6dc31b0cdefc3bcd434909b
hybras
2021-02-19T16:34:27
Change cfg(not(any(bad)) to cfg(any(good))
diff --git a/src/lib.rs b/src/lib.rs index b05d16f..3c6a11b 100644 --- a/src/lib.rs +++ b/src/lib.rs @@ -55,7 +55,14 @@ pub use windows::{that, with}; #[cfg(target_os = "macos")] pub use macos::{that, with}; -#[cfg(not(any(target_os = "windows", target_os = "macos")))] +#[cfg(any( + target_os = "linux", + tar...
1
16
2
cb5bbd3287bf2ca66e6ea3afefb149e4fe12bdd8
hybras
2021-02-19T16:12:36
Modularize Code
diff --git a/src/lib.rs b/src/lib.rs index d3d5424..b05d16f 100644 --- a/src/lib.rs +++ b/src/lib.rs @@ -46,120 +46,17 @@ //! } //! # } //! ``` -#[cfg(windows)] -extern crate winapi; - -#[cfg(not(windows))] -use std::process::{Command, Stdio}; use std::{ffi::OsStr, io, process::ExitStatus, thread}; -#[cfg(not(a...
1
121
107
c3d826220e59040d6d08d707ac771ba817165a07
Sebastian Thiel
2020-05-26T14:24:30
optimize manifest includes
diff --git a/Cargo.toml b/Cargo.toml index b3d5a45..8dfa70e 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -9,7 +9,7 @@ readme = "README.md" description = "Open a path or URL using the program configured on the system" repository = "https://github.com/Byron/open-rs" keywords = ["open", "xdg-open", "start", "launch"] -i...
1
1
1
94b129ad998729967a856f19f74e4628957ea99b
Sebastian Thiel
2020-03-08T06:21:34
Cargo fmt
diff --git a/src/lib.rs b/src/lib.rs index 2e033b5..77fd175 100644 --- a/src/lib.rs +++ b/src/lib.rs @@ -43,12 +43,7 @@ extern crate winapi; #[cfg(not(windows))] use std::process::{Command, Stdio}; -use std::{ - ffi::OsStr, - io, - process::ExitStatus, - thread -}; +use std::{ffi::OsStr, io, process::Ex...
2
10
16
e98ec3d79ef199dc16f3ce65b766aa0110abaaf0
momf
2020-03-03T12:27:39
fixed import bug
diff --git a/src/lib.rs b/src/lib.rs index 1ae8727..2e033b5 100644 --- a/src/lib.rs +++ b/src/lib.rs @@ -41,7 +41,7 @@ extern crate winapi; #[cfg(not(windows))] -use std::process::Stdio; +use std::process::{Command, Stdio}; use std::{ ffi::OsStr,
1
1
1
9b83669e8c463648b6f4149e84fcb1e00d68f49b
momf
2020-03-03T12:20:14
add with function
diff --git a/src/lib.rs b/src/lib.rs index 65e3501..1ae8727 100644 --- a/src/lib.rs +++ b/src/lib.rs @@ -40,9 +40,11 @@ #[cfg(windows)] extern crate winapi; +#[cfg(not(windows))] +use std::process::Stdio; + use std::{ ffi::OsStr, - process::{Command, Stdio}, io, process::ExitStatus, thread @...
1
60
1
d3db8c748be2e65865aed7246cd8eaeaacd4ef8a
Sebastian Thiel
2020-02-11T09:36:15
(cargo-release) start next development iteration 1.3.5-alpha.0
diff --git a/Cargo.toml b/Cargo.toml index 1e2bc51..9a0b543 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -1,7 +1,7 @@ [package] name = "open" -version = "1.3.4" +version = "1.3.5-alpha.0" authors = ["Sebastian Thiel <byronimo@gmail.com>"] license = "MIT" edition = "2018"
1
1
1
5c1497c6d09a829d4be19e9bd3eec5557efce370
Igor Gnatenko
2020-02-11T09:07:41
chore: Include README/LICENSE into a release tarball
diff --git a/Cargo.toml b/Cargo.toml index a3aa24b..f3aace9 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -9,7 +9,7 @@ readme = "README.md" description = "Open a path or URL using the program configured on the system" repository = "https://github.com/Byron/open-rs" keywords = ["open", "xdg-open", "start", "launch"] -i...
1
1
1
9d9e40cc9b68266652a5ac21915b558b812ee444
Sebastian Thiel
2019-08-11T05:56:55
Bump version
diff --git a/Cargo.toml b/Cargo.toml index 9656ad7..d1dac94 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -1,7 +1,7 @@ [package] name = "open" -version = "1.3.1" +version = "1.3.2" authors = ["Sebastian Thiel <byronimo@gmail.com>"] license = "MIT" description = "Open a path or URL using the program configured on t...
1
1
1
d45e4c6103f95027b3ef397d5f03a8b75bcdb03d
Sebastian Thiel
2019-08-11T05:55:56
Improve documentation
diff --git a/src/lib.rs b/src/lib.rs index 7fa8c97..ddf5999 100644 --- a/src/lib.rs +++ b/src/lib.rs @@ -109,6 +109,7 @@ pub fn that<T: AsRef<OsStr> + Sized>(path: T) -> io::Result<ExitStatus> { } /// Convenience function for opening the passed path in a new thread. +/// See documentation of `that(...)` for more de...
1
1
0
5927784721174259af5e6f3d07f724f5b6e89501
Alex Guerra
2019-08-09T19:44:30
Add that_in_background Closes #4
diff --git a/src/lib.rs b/src/lib.rs index ad039b3..7fa8c97 100644 --- a/src/lib.rs +++ b/src/lib.rs @@ -46,6 +46,7 @@ use std::process::{Command, Stdio}; use std::ffi::OsStr; use std::io; use std::process::ExitStatus; +use std::thread; #[cfg(not(any(target_os = "windows", target_os = "macos")))] pub fn that<T: ...
1
9
0
cb41dce487b9936c3bf93d242dc6ff70a7924f0a
Sebastian Thiel
2019-07-28T23:48:27
New minor release with wslview support
diff --git a/Cargo.toml b/Cargo.toml index 5c7dfd3..9656ad7 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -1,7 +1,7 @@ [package] name = "open" -version = "1.2.3" +version = "1.3.1" authors = ["Sebastian Thiel <byronimo@gmail.com>"] license = "MIT" description = "Open a path or URL using the program configured on t...
1
1
1
0babfd0abfa266739a8aaadf8fc936c8c061ac0b
timvisee
2019-07-28T11:33:18
Use wslview on WSL, try it as last binary
diff --git a/src/lib.rs b/src/lib.rs index f16bd55..ad039b3 100644 --- a/src/lib.rs +++ b/src/lib.rs @@ -51,7 +51,7 @@ use std::process::ExitStatus; pub fn that<T: AsRef<OsStr> + Sized>(path: T) -> io::Result<ExitStatus> { let path_ref = path.as_ref(); let mut last_err: io::Error = io::Error::from_raw_os_err...
1
1
1
0a4353764a17579e92ae97ea08ea226ace5cc86a
timvisee
2019-07-16T23:24:01
Add support for Linux in WSL through wslu/wslview Fixes #20
diff --git a/src/lib.rs b/src/lib.rs index 043a223..f16bd55 100644 --- a/src/lib.rs +++ b/src/lib.rs @@ -51,7 +51,7 @@ use std::process::ExitStatus; pub fn that<T: AsRef<OsStr> + Sized>(path: T) -> io::Result<ExitStatus> { let path_ref = path.as_ref(); let mut last_err: io::Error = io::Error::from_raw_os_err...
1
1
1
4e3574a20a84c8a0d681e11ec351d20e35b73ea4
Sebastian Thiel
2019-07-03T09:54:00
Supress stdout and stderr for non-windows platforms Fixes #19
diff --git a/src/lib.rs b/src/lib.rs index dcaeac2..043a223 100644 --- a/src/lib.rs +++ b/src/lib.rs @@ -41,7 +41,7 @@ extern crate winapi; #[cfg(not(target_os = "windows"))] -use std::process::Command; +use std::process::{Command, Stdio}; use std::ffi::OsStr; use std::io; @@ -52,7 +52,12 @@ pub fn that<T: AsRe...
2
18
7
c2908176e2bb982a679d7097584e584a53deaf15
Igor Gnatenko
2019-03-13T23:08:36
chore: Exclude unneeded files from crates.io
diff --git a/Cargo.toml b/Cargo.toml index 1f9aea9..806f954 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -8,6 +8,7 @@ description = "Open a path or URL using the program configured on the system" repository = "https://github.com/Byron/open-rs" keywords = ["open", "xdg-open", "start", "launch"] documentation = "http:/...
1
1
0
78e94aa545e531f99aabcd0a328adc44e4ed06a6
Sebastian Thiel
2018-08-05T10:39:50
bump version: better way to open things on windows
diff --git a/Cargo.toml b/Cargo.toml index 093c769..1f9aea9 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -1,7 +1,7 @@ [package] name = "open" -version = "1.2.1" +version = "1.2.2" authors = ["Sebastian Thiel <byronimo@gmail.com>"] license = "MIT" description = "Open a path or URL using the program configured on t...
1
1
1
e2fc4b1061ef105e237b4dda1ffa03eaf3a1cdb4
Brian Bowman
2018-07-31T08:26:37
Use ShellExecute rather than start.exe on windows The code is adapted from rustup. Using ShellExecute is more efficient and allows much better error handling. It also avoids some bugs, which is the reason rustup switched to using this method. Fixes #16
diff --git a/Cargo.toml b/Cargo.toml index b8b32af..093c769 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -13,3 +13,6 @@ documentation = "http://byron.github.io/open-rs" test = false doc = false name = "open" + +[target.'cfg(windows)'.dependencies] +winapi = { version = "0.3", features = ["shellapi"] } diff --git a/sr...
2
54
14
88ddb6febe811fa8f5ab12b32cbf2a716676fb53
Armando Perez
2018-07-06T08:21:27
Small optimizations and stylistic improvements
diff --git a/src/lib.rs b/src/lib.rs index 2e95e4f..79c22c2 100644 --- a/src/lib.rs +++ b/src/lib.rs @@ -37,35 +37,41 @@ //! } //! # } //! ``` +use std::ffi::OsStr; use std::io; use std::process::{Command, ExitStatus}; -use std::ffi::OsStr; #[cfg(not(any(target_os = "windows", target_os = "macos")))] pub fn th...
2
20
14
dd9dde6aa4cd47ca57378ac018a66dbbcd661d44
Matthias Endler
2018-03-19T15:50:21
Adjust code style
diff --git a/src/lib.rs b/src/lib.rs index d1fb91c..2e95e4f 100644 --- a/src/lib.rs +++ b/src/lib.rs @@ -24,7 +24,7 @@ //! match open::that("http://rust-lang.org") { //! Ok(exit_status) => { //! if exit_status.success() { -//! println!("Look at your browser !"); +//! println!("Loo...
2
4
4
ec5c7ab817f3978212b0230512b75a1a8b5374f1
Sebastian Thiel
2017-12-13T17:34:24
Run latest rustfmt
diff --git a/src/lib.rs b/src/lib.rs index f4c9cf0..d1fb91c 100644 --- a/src/lib.rs +++ b/src/lib.rs @@ -42,7 +42,7 @@ use std::process::{Command, ExitStatus}; use std::ffi::OsStr; #[cfg(not(any(target_os = "windows", target_os = "macos")))] -pub fn that<T:AsRef<OsStr>+Sized>(path: T) -> io::Result<ExitStatus> { +p...
2
17
13
d52cfb252e3feee3d3793bc91d28e9cf6f193947
Sebastian Thiel
2017-09-24T12:01:25
Version bump - fix windows 'start' invocation
diff --git a/Cargo.toml b/Cargo.toml index 9b8e923..b8b32af 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -1,7 +1,7 @@ [package] name = "open" -version = "1.2.0" +version = "1.2.1" authors = ["Sebastian Thiel <byronimo@gmail.com>"] license = "MIT" description = "Open a path or URL using the program configured on t...
1
1
1
a631235c285b5f48ce63a52cbf7d70f51439db06
Reiner Dolp
2017-09-17T14:53:26
fix filenames with spaces on windows
diff --git a/src/lib.rs b/src/lib.rs index f69bc17..45ee21c 100644 --- a/src/lib.rs +++ b/src/lib.rs @@ -59,7 +59,7 @@ pub fn that<T:AsRef<OsStr>+Sized>(path: T) -> io::Result<ExitStatus> { #[cfg(target_os = "windows")] pub fn that<T:AsRef<OsStr>+Sized>(path: T) -> io::Result<ExitStatus> { let mut cmd = Command:...
1
1
1
89caa594bf2e16929dc74565e197ba2d3cbd8390
Florian Gilcher
2017-07-27T22:19:59
Fix a small typo
diff --git a/src/lib.rs b/src/lib.rs index f69bc17..4387530 100644 --- a/src/lib.rs +++ b/src/lib.rs @@ -16,7 +16,7 @@ //! # Notes //! //! As an operating system program is used, chances are that the open operation fails. -//! Therfore, you are advised to at least check the result with `.is_err()` and +//! Therefore...
1
1
1
79bc73b7ca0927f0594670bcc23de989693275c0
Tshepang Lekhonkhobe
2017-03-30T03:41:17
doc: improve example
diff --git a/src/lib.rs b/src/lib.rs index ad1ca92..f69bc17 100644 --- a/src/lib.rs +++ b/src/lib.rs @@ -2,22 +2,41 @@ //! //! # Usage //! +//! The following should open the given URL in a web browser +//! //! ```test_harness,no_run //! extern crate open; //! //! # #[test] //! # fn doit() { -//! open::that("/pa...
1
23
4
3f4319c79e293fb8141e6574db710a7f97e0f1d4
Denis Kolodin
2017-01-23T09:22:50
Escape GET parameters for Windows
diff --git a/src/lib.rs b/src/lib.rs index d274343..ad1ca92 100644 --- a/src/lib.rs +++ b/src/lib.rs @@ -39,7 +39,14 @@ pub fn that<T:AsRef<OsStr>+Sized>(path: T) -> io::Result<ExitStatus> { #[cfg(target_os = "windows")] pub fn that<T:AsRef<OsStr>+Sized>(path: T) -> io::Result<ExitStatus> { - try!(Command::new("...
1
8
1
2540a0a6abc4b27d6553400e7aef62e3ef94020d
Hendrik Sollich
2016-04-10T11:38:09
taking T:AsRef<OsStr> instead of &str this allows passing Paths and PathBufs and alls other sorts of string
diff --git a/src/lib.rs b/src/lib.rs index 4231591..d274343 100644 --- a/src/lib.rs +++ b/src/lib.rs @@ -4,11 +4,11 @@ //! //! ```test_harness,no_run //! extern crate open; -//! +//! //! # #[test] //! # fn doit() { //! open::that("/path/to/file/with.fancy-extension"); -//! if open::that("https://google.de").is_o...
1
10
9
31605e0eddfb0cf8db635dd4d86131bc46beae78
Sebastian Thiel
2015-07-08T15:47:11
fix(cargo): no docs for open And I thought I did that, but disabled tests only ... .
diff --git a/Cargo.toml b/Cargo.toml index bcb880c..e32a2ee 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -11,4 +11,5 @@ documentation = "http://byron.github.io/open-rs" [[bin]] test = false +doc = false name = "open" \ No newline at end of file
1
1
0
25c0e398856c24a2daf0444640567ed3fd2f4307
Sebastian Thiel
2015-07-08T15:39:09
fix(open): use result I wonder why that was not shown when I compiled it
diff --git a/src/main.rs b/src/main.rs index da62e04..5f822f8 100644 --- a/src/main.rs +++ b/src/main.rs @@ -9,13 +9,13 @@ fn main() { match env::args().skip(1).next() { Some(arg) => arg, None => { - writeln!(stderr(), "usage: open <path-or-url>"); + writ...
1
2
2
a4c3a352c8f912211d5ab48daaf41cb847ebcc0c
Sebastian Thiel
2015-07-08T15:21:33
feat(open): added 'open' program Which uses the `open` library to open any path or url.
diff --git a/Cargo.toml b/Cargo.toml index daea32c..a47121e 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -8,3 +8,7 @@ description = "Open a path or URL using the program configured on the system" repository = "https://github.com/Byron/open-rs" keywords = ["open", "xdg-open", "start", "launch"] documentation = "http:/...
3
27
8
210ec6ef37ba7d230a0cc367e979173a555fa092
Oliver Schneider
2015-07-08T12:57:18
windows: start is a cmd command, not an executable
diff --git a/src/lib.rs b/src/lib.rs index b88b6c5..937789e 100644 --- a/src/lib.rs +++ b/src/lib.rs @@ -38,7 +38,7 @@ pub fn that(path: &str) -> io::Result<ExitStatus> { #[cfg(target_os = "windows")] pub fn that(path: &str) -> io::Result<ExitStatus> { - match Command::new("start").arg(path).spawn() { + match...
1
2
2
8b4e1558f09937c555ab381ea6399a2c0758c23d
Sebastian Thiel
2015-04-21T09:41:47
fix(rustup): (07560d233 2015-04-20) (built 2015-04-19) * use std::io consistently * adjust to improved `Command` API Related to https://github.com/Byron/google-apis-rs/issues/70
diff --git a/Cargo.toml b/Cargo.toml index 2068106..daea32c 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -1,7 +1,7 @@ [package] name = "open" -version = "1.0.2" +version = "1.0.3" authors = ["Sebastian Thiel <byronimo@gmail.com>"] license = "MIT" description = "Open a path or URL using the program configured on t...
2
22
17
30c96b1cb95c1e03bede218b8fb03bbd9ada9317
Sebastian Thiel
2015-02-28T20:18:32
fix(open): don't use 'open' on linux ➜ ~ open -h Usage: open [OPTIONS] -- command Because ... This utility help you to start a program on a new virtual terminal (VT). Options: -c, --console=NUM use the given VT number; -e, --exec execute the command, without forking; -f, --force ...
diff --git a/Cargo.toml b/Cargo.toml index 8d57e9b..2068106 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -1,7 +1,7 @@ [package] name = "open" -version = "1.0.1" +version = "1.0.2" authors = ["Sebastian Thiel <byronimo@gmail.com>"] license = "MIT" description = "Open a path or URL using the program configured on t...
2
2
2
0fcafb56cdb5d154b3e983d17c93a1dd7c665426
Sebastian Thiel
2015-02-27T16:30:44
fix(cargo): description added [skip ci]
diff --git a/Cargo.toml b/Cargo.toml index 52772dc..b5346c7 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -4,6 +4,7 @@ name = "open" version = "1.0.0" authors = ["Sebastian Thiel <byronimo@gmail.com>"] license = "MIT" +description = "Open a path or URL using the program configured on the system" repository = "https:/...
1
1
0
a4176ef47d06d6f2b7f9eef09a72d7864bda2fe0
Canop
2026-02-11T07:44:55
fix compilation with feature 'lite'
diff --git a/src/remove.rs b/src/remove.rs index f07ff08..606222c 100644 --- a/src/remove.rs +++ b/src/remove.rs @@ -125,6 +125,7 @@ pub fn remove_all_matches<'s>( /// When all matches are at the start or end of the input, no new /// String is allocated and a borrowed slice is returned. #[must_use] +#[cfg(not(featur...
1
1
0
0c3c07dc9d142132c19e698b41180fa7d842085d
Denys Séguret
2026-01-04T09:22:08
fix compilation with lite feature (#44) Fix #43
diff --git a/src/lib.rs b/src/lib.rs index 0e04c34..df03980 100644 --- a/src/lib.rs +++ b/src/lib.rs @@ -292,7 +292,6 @@ pub use { once_cell::sync::Lazy, remove::{ remove_match, - bytes_remove_match, }, }; @@ -306,6 +305,9 @@ pub use { RegexBuilder as BytesRegexBuilder ...
5
11
8
e77d23525b05e6dd9634c4e3710189986558cd69
Canop
2026-01-02T11:41:45
version 3.5.0
diff --git a/Cargo.toml b/Cargo.toml index eb1ca1e..d3f9336 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -1,6 +1,6 @@ [package] name = "lazy-regex" -version = "3.4.2" +version = "3.5.0" authors = ["Canop <cano.petrole@gmail.com>"] edition = "2021" description = "lazy static regular expressions checked at compile ti...
2
4
4
1de9cef79c399b4553dbf7a90c76d00edc96cbc3
Canop
2025-10-29T15:01:05
improve doc
diff --git a/Cargo.toml b/Cargo.toml index b5de265..05873e0 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -1,6 +1,6 @@ [package] name = "lazy-regex" -version = "3.4.1" +version = "3.4.2" authors = ["Canop <cano.petrole@gmail.com>"] edition = "2021" description = "lazy static regular expressions checked at compile ti...
6
52
31
a0b5bdb702c33509485248246e1ac4b3d47786c7
Denys Séguret
2024-12-27T06:16:51
regex_captures_iter! macro (#39) Fix #37
diff --git a/src/lib.rs b/src/lib.rs index e9346e8..a85ceca 100644 --- a/src/lib.rs +++ b/src/lib.rs @@ -11,12 +11,11 @@ The [regex!] macro returns references to normal instances of [regex::Regex] or [ But most often, you won't even use the `regex!` macro but the other macros which are specialized for testing a matc...
3
68
22
a6d6bbd7965483e859983cc321626f2bb3dac23e
Canop
2024-12-24T14:50:35
regex_captures_iter! macro Fix #37
diff --git a/src/lib.rs b/src/lib.rs index e9346e8..a85ceca 100644 --- a/src/lib.rs +++ b/src/lib.rs @@ -11,12 +11,11 @@ The [regex!] macro returns references to normal instances of [regex::Regex] or [ But most often, you won't even use the `regex!` macro but the other macros which are specialized for testing a matc...
3
68
22
210424249b73f79e5c77839ebc4c4aeade81916d
Canop
2024-12-10T12:46:59
Fix MSRV to 1.65 (because regex 1.9 asks for it) The previous MSRV of 1.56 was a lie as no version of regex 1.9+ was compatible with it.
diff --git a/Cargo.toml b/Cargo.toml index 32afaae..546ae60 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -9,7 +9,7 @@ license = "MIT" categories = ["text-processing"] repository = "https://github.com/Canop/lazy-regex" readme = "README.md" -rust-version = "1.56" +rust-version = "1.65" [dependencies] once_cell = "1...
1
1
1
4ae6a40a7abda123be1471fcae0d297a26b4f998
Canop
2024-07-18T07:49:33
default-features instead of default_features
diff --git a/Cargo.toml b/Cargo.toml index b975e43..1334a44 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -13,7 +13,7 @@ rust-version = "1.56" [dependencies] once_cell = { version = "1.17", default-features = false } -regex = {version = "1.9", default_features = false, optional = true} +regex = {version = "1.9", defa...
1
1
1
be9bbfa477d2619d8ba68561ee245abb81013310
Alexander Kjäll
2024-04-01T13:54:43
Add repository link (#33) This crate is missing a repository link here: https://crates.io/crates/lazy-regex-proc_macros
diff --git a/src/proc_macros/Cargo.toml b/src/proc_macros/Cargo.toml index a28beee..20961b7 100644 --- a/src/proc_macros/Cargo.toml +++ b/src/proc_macros/Cargo.toml @@ -5,6 +5,7 @@ authors = ["Canop <cano.petrole@gmail.com>"] description = "proc macros for the lazy_regex crate" license = "MIT" edition = "2018" +repo...
1
1
0
c6677e0df77b0a0854a87e4f6cd8a21dc1e43620
Denys Séguret
2023-11-09T16:55:21
add bytes_ prefixed macros for building bytes::Regex (#31) Fix #30
diff --git a/Cargo.toml b/Cargo.toml index 603b508..46716d3 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -13,7 +13,7 @@ rust-version = "1.56" [dependencies] once_cell = "1.17" -regex = {version = "1.9", default_features = false, features = ["std"], optional = true} +regex = {version = "1.9", default_features = false...
5
257
31
a3cb087a644721626d76120aae7567104aa47a4c
Denys Séguret
2023-09-12T07:02:15
Allow mut closure in replace macros (#28) Fix #27
diff --git a/src/proc_macros/mod.rs b/src/proc_macros/mod.rs index 242e91d..20e9aac 100644 --- a/src/proc_macros/mod.rs +++ b/src/proc_macros/mod.rs @@ -178,7 +178,7 @@ fn replacen(input: TokenStream, limit: usize) -> TokenStream { #value, #limit, |caps: &l...
2
19
1
2539cb1ad36bed485cc72425eb1e7b83d2e6ba5e
Eduardo Pinho
2023-07-28T09:43:25
[proc_macros] Update syn to 2.0
diff --git a/src/proc_macros/Cargo.toml b/src/proc_macros/Cargo.toml index 5a5212f..6ef5689 100644 --- a/src/proc_macros/Cargo.toml +++ b/src/proc_macros/Cargo.toml @@ -7,7 +7,7 @@ license = "MIT" edition = "2018" [dependencies] -syn = { version = "1.0.103", features = ["full"] } +syn = { version = "2.0.27", featur...
1
1
1
197987674221f06a66386ce4927c701091b82cfb
Canop
2023-01-03T10:55:10
upgrade regex to 1.7
diff --git a/Cargo.toml b/Cargo.toml index 1fcbae6..6893028 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -12,8 +12,8 @@ readme = "README.md" rust-version = "1.65" [dependencies] -once_cell = "1.7" -regex = {version = "1.5", default_features = false, features = ["std"]} +once_cell = "1.17" +regex = {version = "1.7", ...
3
4
4
eda81b84cc348c558338d4705103894e7ef27d0d
Canop
2023-01-03T10:52:02
clearer doc with compile_fail
diff --git a/Cargo.toml b/Cargo.toml index 3059d68..1fcbae6 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -9,7 +9,7 @@ license = "MIT" categories = ["text-processing"] repository = "https://github.com/Canop/lazy-regex" readme = "README.md" -rust-version = "1.56" +rust-version = "1.65" [dependencies] once_cell = "1...
2
5
3
4013e4cc57d98d42d65a67eef5bc2fb988d56861
Canop
2022-11-05T14:24:35
allow building with --no-default-features Fix #16
diff --git a/Cargo.toml b/Cargo.toml index 6033e4e..3059d68 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -1,6 +1,6 @@ [package] name = "lazy-regex" -version = "2.3.1" +version = "2.3.2-dev" authors = ["Canop <cano.petrole@gmail.com>"] edition = "2021" description = "lazy static regular expressions checked at compil...
1
2
2
f4520b63c042ae056883b848f2ae71a4173091c5
Canop
2022-11-04T06:29:19
version 2.3.1
diff --git a/Cargo.toml b/Cargo.toml index b260c34..6033e4e 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -1,6 +1,6 @@ [package] name = "lazy-regex" -version = "2.3.1-dev" +version = "2.3.1" authors = ["Canop <cano.petrole@gmail.com>"] edition = "2021" description = "lazy static regular expressions checked at compil...
2
3
3
2d3ad8d45e4fdb71cdda9ad151d502e789386967
Canop
2022-11-03T19:09:17
upgrade syn version to have LitStr#token()
diff --git a/src/proc_macros/Cargo.toml b/src/proc_macros/Cargo.toml index b94737d..e13b48c 100644 --- a/src/proc_macros/Cargo.toml +++ b/src/proc_macros/Cargo.toml @@ -7,7 +7,7 @@ license = "MIT" edition = "2018" [dependencies] -syn = { version = "1.0", features = ["full"] } +syn = { version = "1.0.103", features ...
1
1
1
cf75dba7c0aaf1435d648f1052b52466349f84d9
Anton Bulakh
2022-11-03T18:18:43
Use spanned error for the regex flag as well
diff --git a/src/proc_macros/regex_code.rs b/src/proc_macros/regex_code.rs index 3eb6aa9..99e6750 100644 --- a/src/proc_macros/regex_code.rs +++ b/src/proc_macros/regex_code.rs @@ -27,7 +27,7 @@ impl TryFrom<LitStr> for RegexCode { let mut ignore_whitespace = false; let mut swap_greed = false; ...
1
8
2
9107b6791fb148f490b6cbb5514ff11fa2ff5f32
Anton Bulakh
2022-11-02T01:01:12
Use spanned errors instead of panics
diff --git a/src/proc_macros/mod.rs b/src/proc_macros/mod.rs index 36d694a..5bfa609 100644 --- a/src/proc_macros/mod.rs +++ b/src/proc_macros/mod.rs @@ -1,34 +1,50 @@ +use std::convert::TryFrom; + mod args; mod regex_code; use { - crate::{ - args::*, - regex_code::*, - }, + crate::{args::*, ...
2
76
97
3a3d210ecbbe9175ff19ac6a595a53a8a4bf0e09
Blair Noctis
2022-03-04T01:41:47
Add `regex::bytes::Regex` support This is a draft that works but lacks docs, tests, review etc. - Added `B` flag for `regex::bytes::Regex` variant - Changed `RegexCode` to detect flag and build corresponding token stream at creation - Added convenience methods to shorten macro implementations - Split generation code ...
diff --git a/src/lib.rs b/src/lib.rs index c9b52a9..ab8ce2b 100644 --- a/src/lib.rs +++ b/src/lib.rs @@ -7,7 +7,10 @@ Use the [regex!] macro to build regexes: * they can hold flags as suffix: `let case_insensitive_regex = regex!("ab*"i);` * regex creation is less verbose -This macro returns references to normal in...
4
216
102
a36b9ff6c3466e44aed487a51fe696c671112fea
Canop
2021-10-20T13:29:39
version 2.2.2
diff --git a/Cargo.toml b/Cargo.toml index d0acdf3..ee7b381 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -1,6 +1,6 @@ [package] name = "lazy-regex" -version = "2.2.1" +version = "2.2.2" authors = ["Canop <cano.petrole@gmail.com>"] edition = "2018" description = "lazy static regular expressions checked at compile ti...
1
1
1
a70109b246ba292d6ccb38916179e4c33e98b5cc
Max Bruckner
2021-10-20T11:32:03
Expose cargo features from the regex crate
diff --git a/Cargo.toml b/Cargo.toml index 071b3d4..691090b 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -12,11 +12,28 @@ readme = "README.md" [dependencies] once_cell = "1.7" -regex = "1.5" +regex = {version = "1.5", default_features = false} [dependencies.lazy-regex-proc_macros] path = "src/proc_macros" versi...
1
18
1
ca97192064544487449fe59f4ab4e77abcda991a
Canop
2021-06-07T10:07:11
code splitted
diff --git a/examples/regexes/src/main.rs b/examples/regexes/src/main.rs index 386b33e..4b337e5 100644 --- a/examples/regexes/src/main.rs +++ b/examples/regexes/src/main.rs @@ -47,7 +47,7 @@ fn example_captures() { fn examples_replace_all() { let text = "Foo fuu"; let text = regex_replace_all!( - r#"\...
4
116
97