Skip to content

Commit

Permalink
Initial AIX enablement
Browse files Browse the repository at this point in the history
  • Loading branch information
ecnelises committed Mar 5, 2024
1 parent 25c4a40 commit 2007762
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 2 deletions.
2 changes: 1 addition & 1 deletion Cargo.toml
Expand Up @@ -24,7 +24,7 @@ hardened = []
disable-wsl = []
wasm-console = ["web-sys/console"]

[target.'cfg(any(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"))'.dependencies]
home = "0.5"

[target.'cfg(target_os = "macos")'.dependencies]
Expand Down
6 changes: 5 additions & 1 deletion src/lib.rs
Expand Up @@ -23,6 +23,7 @@
//! | ios | ✅ | default only | ✅ |
//! | wasm | ✅ | default only | ✅ |
//! | haiku | ✅ (experimental) | default only | ❌ |
//! | aix | ✅ (experimental) | default only | ❌ |
//!
//! ## Consistent Behaviour
//! `webbrowser` defines consistent behaviour on all platforms as follows:
Expand All @@ -46,6 +47,7 @@
#[cfg_attr(windows, path = "windows.rs")]
#[cfg_attr(
any(
target_os = "aix",
target_os = "linux",
target_os = "freebsd",
target_os = "netbsd",
Expand All @@ -57,6 +59,7 @@
mod os;

#[cfg(not(any(
target_os = "aix",
target_os = "android",
target_os = "windows",
target_os = "macos",
Expand All @@ -69,10 +72,11 @@ mod os;
target_arch = "wasm32"
)))]
compile_error!(
"Only Windows, Mac OS, iOS, Linux, *BSD and Haiku and Wasm32 are currently supported"
"Only Windows, Mac OS, iOS, Linux, *BSD, Haiku, AIX and Wasm32 are currently supported"
);

#[cfg(any(
target_os = "aix",
target_os = "linux",
target_os = "freebsd",
target_os = "netbsd",
Expand Down

0 comments on commit 2007762

Please sign in to comment.