Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Initial AIX enablement #79

Merged
merged 1 commit into from
Mar 5, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion Cargo.toml
Original file line number Diff line number Diff line change
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
Original file line number Diff line number Diff line change
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
Loading