mirror of
https://github.com/szymon-jozef/libnotify-rs.git
synced 2026-10-27 19:20:43 +01:00
Compare commits
7 Commits
docs/error
...
v0.3.1
| Author | SHA1 | Date | |
|---|---|---|---|
| 6e0ecda035 | |||
| f10ff06a89 | |||
|
|
f170e8c710 | ||
| 6d8672537f | |||
|
|
4f20307a7b | ||
|
|
edaf6e2787 | ||
| 043b6e93c8 |
2
Cargo.lock
generated
2
Cargo.lock
generated
@@ -336,7 +336,7 @@ dependencies = [
|
|||||||
|
|
||||||
[[package]]
|
[[package]]
|
||||||
name = "libnotify-rs"
|
name = "libnotify-rs"
|
||||||
version = "0.3.0"
|
version = "0.3.1"
|
||||||
dependencies = [
|
dependencies = [
|
||||||
"bindgen",
|
"bindgen",
|
||||||
"clap",
|
"clap",
|
||||||
|
|||||||
@@ -1,6 +1,6 @@
|
|||||||
[package]
|
[package]
|
||||||
name = "libnotify-rs"
|
name = "libnotify-rs"
|
||||||
version = "0.3.0"
|
version = "0.3.1"
|
||||||
edition = "2024"
|
edition = "2024"
|
||||||
authors = [ "szymon_jozef"]
|
authors = [ "szymon_jozef"]
|
||||||
description = "Rust bindings for libnotify"
|
description = "Rust bindings for libnotify"
|
||||||
|
|||||||
7
build.rs
7
build.rs
@@ -2,7 +2,9 @@ use std::env;
|
|||||||
use std::path::PathBuf;
|
use std::path::PathBuf;
|
||||||
|
|
||||||
fn main() {
|
fn main() {
|
||||||
let library = pkg_config::Config::new().probe("libnotify").unwrap();
|
let library = pkg_config::Config::new()
|
||||||
|
.probe("libnotify")
|
||||||
|
.expect("Cannot locate libnotify. Is it installed?");
|
||||||
|
|
||||||
let paths = library
|
let paths = library
|
||||||
.include_paths
|
.include_paths
|
||||||
@@ -17,7 +19,8 @@ fn main() {
|
|||||||
.generate()
|
.generate()
|
||||||
.expect("Unable to generate bindings");
|
.expect("Unable to generate bindings");
|
||||||
|
|
||||||
let out_path = PathBuf::from(env::var("OUT_DIR").unwrap());
|
let out_path =
|
||||||
|
PathBuf::from(env::var("OUT_DIR").expect("Out $OUT_DIR not set. Perhaps a bindgen error?"));
|
||||||
|
|
||||||
bindings
|
bindings
|
||||||
.write_to_file(out_path.join("bindings.rs"))
|
.write_to_file(out_path.join("bindings.rs"))
|
||||||
|
|||||||
@@ -17,6 +17,9 @@
|
|||||||
#![allow(non_snake_case)]
|
#![allow(non_snake_case)]
|
||||||
#![warn(missing_docs)]
|
#![warn(missing_docs)]
|
||||||
|
|
||||||
|
#[cfg(not(target_os = "linux"))]
|
||||||
|
compile_error!("Libnotify-rs only supports linux");
|
||||||
|
|
||||||
/// Basic libnotify rust wrapper
|
/// Basic libnotify rust wrapper
|
||||||
pub mod api;
|
pub mod api;
|
||||||
/// Higher level abstraction over api
|
/// Higher level abstraction over api
|
||||||
|
|||||||
Reference in New Issue
Block a user