From ffaf6747c41ac944e1dfdb3c592807198b11e085 Mon Sep 17 00:00:00 2001 From: Dominik Hassler Date: Fri, 5 Apr 2024 16:54:54 +0000 Subject: [PATCH] initial illumos support --- Cargo.toml | 2 +- src/lib.rs | 8 ++++++-- 2 files changed, 7 insertions(+), 3 deletions(-) diff --git a/Cargo.toml b/Cargo.toml index 6228b60..09f4117 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -24,7 +24,7 @@ hardened = [] disable-wsl = [] wasm-console = ["web-sys/console"] -[target.'cfg(any(target_os = "aix", target_os = "linux", target_os = "freebsd", target_os = "netbsd", target_os = "openbsd", target_os = "haiku"))'.dependencies] +[target.'cfg(any(target_os = "aix", target_os = "linux", target_os = "freebsd", target_os = "netbsd", target_os = "openbsd", target_os = "haiku", target_os = "illumos"))'.dependencies] home = "0.5" [target.'cfg(target_os = "macos")'.dependencies] diff --git a/src/lib.rs b/src/lib.rs index 1e9c886..23341d3 100644 --- a/src/lib.rs +++ b/src/lib.rs @@ -24,6 +24,7 @@ //! | wasm | ✅ | default only | ✅ | //! | haiku | ✅ (experimental) | default only | ❌ | //! | aix | ✅ (experimental) | default only | ❌ | +//! | illumos | ✅ (experimental) | default only | ❌ | //! //! ## Consistent Behaviour //! `webbrowser` defines consistent behaviour on all platforms as follows: @@ -52,7 +53,8 @@ target_os = "freebsd", target_os = "netbsd", target_os = "openbsd", - target_os = "haiku" + target_os = "haiku", + target_os = "illumos" ), path = "unix.rs" )] @@ -68,11 +70,12 @@ mod os; target_os = "netbsd", target_os = "openbsd", target_os = "haiku", + target_os = "illumos", target_os = "ios", target_arch = "wasm32" )))] compile_error!( - "Only Windows, Mac OS, iOS, Linux, *BSD, Haiku, AIX and Wasm32 are currently supported" + "Only Windows, Mac OS, iOS, Linux, *BSD, Haiku, AIX, illumos and Wasm32 are currently supported" ); #[cfg(any( @@ -82,6 +85,7 @@ compile_error!( target_os = "netbsd", target_os = "openbsd", target_os = "haiku", + target_os = "illumos", target_os = "windows" ))] pub(crate) mod common;