Place User Notifications behind a feature flag, as the framework technically requires code signing
This commit is contained in:
parent
5884d267c9
commit
79bb456b93
|
@ -19,4 +19,5 @@ uuid = { version = "0.8", features = ["v4"] }
|
||||||
url = "2.1.1"
|
url = "2.1.1"
|
||||||
|
|
||||||
[features]
|
[features]
|
||||||
|
user-notifications = []
|
||||||
enable-webview-downloading = []
|
enable-webview-downloading = []
|
||||||
|
|
|
@ -7,6 +7,8 @@ fn main() {
|
||||||
if std::env::var("TARGET").unwrap().contains("-apple") {
|
if std::env::var("TARGET").unwrap().contains("-apple") {
|
||||||
println!("cargo:rustc-link-lib=framework=Security");
|
println!("cargo:rustc-link-lib=framework=Security");
|
||||||
println!("cargo:rustc-link-lib=framework=WebKit");
|
println!("cargo:rustc-link-lib=framework=WebKit");
|
||||||
|
|
||||||
|
#[cfg(feature = "user-notifications")]
|
||||||
println!("cargo:rustc-link-lib=framework=UserNotifications");
|
println!("cargo:rustc-link-lib=framework=UserNotifications");
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
|
@ -34,7 +34,10 @@ pub mod geometry;
|
||||||
pub mod layout;
|
pub mod layout;
|
||||||
pub mod menu;
|
pub mod menu;
|
||||||
pub mod networking;
|
pub mod networking;
|
||||||
|
|
||||||
|
#[cfg(feature = "user-notifications")]
|
||||||
pub mod notifications;
|
pub mod notifications;
|
||||||
|
|
||||||
pub mod pasteboard;
|
pub mod pasteboard;
|
||||||
pub mod printing;
|
pub mod printing;
|
||||||
pub mod toolbar;
|
pub mod toolbar;
|
||||||
|
@ -53,7 +56,10 @@ pub mod prelude {
|
||||||
pub use crate::layout::LayoutConstraint;
|
pub use crate::layout::LayoutConstraint;
|
||||||
|
|
||||||
pub use crate::menu::{Menu, MenuItem};
|
pub use crate::menu::{Menu, MenuItem};
|
||||||
|
|
||||||
|
#[cfg(feature = "user-notifications")]
|
||||||
pub use crate::notifications::{Notification, NotificationCenter, NotificationAuthOption};
|
pub use crate::notifications::{Notification, NotificationCenter, NotificationAuthOption};
|
||||||
|
|
||||||
pub use crate::toolbar::{Toolbar, ToolbarController, ToolbarHandle};
|
pub use crate::toolbar::{Toolbar, ToolbarController, ToolbarHandle};
|
||||||
|
|
||||||
pub use crate::networking::URLRequest;
|
pub use crate::networking::URLRequest;
|
||||||
|
|
Loading…
Reference in a new issue