add sys extensions
This commit is contained in:
parent
70ce1b2b9e
commit
54511d9c23
8 changed files with 62 additions and 0 deletions
8
nixide-sys/src/exts/expr.rs
Normal file
8
nixide-sys/src/exts/expr.rs
Normal file
|
|
@ -0,0 +1,8 @@
|
||||||
|
use std::fmt::{Debug, Display, Formatter, Result as FmtResult};
|
||||||
|
|
||||||
|
impl Display for crate::ValueType {
|
||||||
|
#[inline]
|
||||||
|
fn fmt(&self, f: &mut Formatter<'_>) -> FmtResult {
|
||||||
|
Debug::fmt(self, f)
|
||||||
|
}
|
||||||
|
}
|
||||||
1
nixide-sys/src/exts/fetchers.rs
Normal file
1
nixide-sys/src/exts/fetchers.rs
Normal file
|
|
@ -0,0 +1 @@
|
||||||
|
use std::fmt::{Debug, Display, Formatter, Result as FmtResult};
|
||||||
1
nixide-sys/src/exts/flake.rs
Normal file
1
nixide-sys/src/exts/flake.rs
Normal file
|
|
@ -0,0 +1 @@
|
||||||
|
use std::fmt::{Debug, Display, Formatter, Result as FmtResult};
|
||||||
1
nixide-sys/src/exts/main.rs
Normal file
1
nixide-sys/src/exts/main.rs
Normal file
|
|
@ -0,0 +1 @@
|
||||||
|
use std::fmt::{Debug, Display, Formatter, Result as FmtResult};
|
||||||
31
nixide-sys/src/exts/mod.rs
Normal file
31
nixide-sys/src/exts/mod.rs
Normal file
|
|
@ -0,0 +1,31 @@
|
||||||
|
#![allow(unused_imports)]
|
||||||
|
|
||||||
|
#[cfg(feature = "nix-expr-c")]
|
||||||
|
mod expr;
|
||||||
|
#[cfg(feature = "nix-expr-c")]
|
||||||
|
pub use expr::*;
|
||||||
|
|
||||||
|
#[cfg(feature = "nix-fetchers-c")]
|
||||||
|
mod fetchers;
|
||||||
|
#[cfg(feature = "nix-fetchers-c")]
|
||||||
|
pub use fetchers::*;
|
||||||
|
|
||||||
|
#[cfg(feature = "nix-flake-c")]
|
||||||
|
mod flake;
|
||||||
|
#[cfg(feature = "nix-flake-c")]
|
||||||
|
pub use flake::*;
|
||||||
|
|
||||||
|
#[cfg(feature = "nix-main-c")]
|
||||||
|
mod main;
|
||||||
|
#[cfg(feature = "nix-main-c")]
|
||||||
|
pub use main::*;
|
||||||
|
|
||||||
|
#[cfg(feature = "nix-store-c")]
|
||||||
|
mod store;
|
||||||
|
#[cfg(feature = "nix-store-c")]
|
||||||
|
pub use store::*;
|
||||||
|
|
||||||
|
#[cfg(feature = "nix-util-c")]
|
||||||
|
mod util;
|
||||||
|
#[cfg(feature = "nix-util-c")]
|
||||||
|
pub use util::*;
|
||||||
1
nixide-sys/src/exts/store.rs
Normal file
1
nixide-sys/src/exts/store.rs
Normal file
|
|
@ -0,0 +1 @@
|
||||||
|
use std::fmt::{Debug, Display, Formatter, Result as FmtResult};
|
||||||
15
nixide-sys/src/exts/util.rs
Normal file
15
nixide-sys/src/exts/util.rs
Normal file
|
|
@ -0,0 +1,15 @@
|
||||||
|
use std::fmt::{Debug, Display, Formatter, Result as FmtResult};
|
||||||
|
|
||||||
|
impl Display for crate::NixErr {
|
||||||
|
#[inline]
|
||||||
|
fn fmt(&self, f: &mut Formatter<'_>) -> FmtResult {
|
||||||
|
Debug::fmt(self, f)
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
impl Display for crate::NixVerbosity {
|
||||||
|
#[inline]
|
||||||
|
fn fmt(&self, f: &mut Formatter<'_>) -> FmtResult {
|
||||||
|
Debug::fmt(self, f)
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
@ -21,3 +21,7 @@ mod bindings {
|
||||||
include!(concat!(env!("OUT_DIR"), "/bindings.rs"));
|
include!(concat!(env!("OUT_DIR"), "/bindings.rs"));
|
||||||
}
|
}
|
||||||
pub use bindings::root::*;
|
pub use bindings::root::*;
|
||||||
|
|
||||||
|
mod exts;
|
||||||
|
#[allow(unused_imports)]
|
||||||
|
pub use exts::*;
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue