[package] authors = ["Aleksandr Morozov "] name = "freebsd-kmi-rs" version = "0.3.0" edition = "2021" description="FreeBSD Kernel Module Programming Interface" license-file = "LICENSE.txt" repository = "https://repo.4neko.org/4NEKO/freebsd-kmi-rs" keywords = ["FreeBSD", "kmod"] categories = ["api-bindings", "no-std", "os"] #[lib] #crate-type = ["rlib"] [profile.dev] panic = "abort" [profile.release] panic = "abort" [lib] test = false bench = false crate-type = ["rlib"] [features] default = ["FBSD_14_0", "GLOBAL_ALLOC_FLAG_NOWAIT"] # version FBSD_13_1 = [] FBSD_14_0 = [] # functionality # --- GlobalAlloc GLOBAL_ALLOC_DISABLED = [] # when added, the GlobalAlloc will not be included GLOBAL_ALLOC_EXCLUDE_PANICHANDLER = [] # when added, a default panic_handler will not be included GLOBAL_ALLOC_EXCLUDE_ALLOC_ERROR_HNDL = [] # when added, a default alloc_error_handler will not be included # - malloc allocation flags: either GLOBAL_ALLOC_FLAG_WAITOK = [] # instructs malloc that it is ok to wait ## - or GLOBAL_ALLOC_FLAG_NOWAIT = [] # instructs malloc that it is not ok to wait GLOBAL_ALLOC_FLAG_USERESERVE = [] # additional flag to use a reserve when alloc fail can not be tolerated # --- other LOCK_DEBUG = [] # See more keys and their definitions at https://doc.rust-lang.org/cargo/reference/manifest.html [dependencies] #freebsd-kpi-13-1 = { git = "https://gitlab.com/relkom/freebsd-kpi-rs", branch = "releng/13.1"} #freebsd-kpi-r14-0 = { path = "../freebsd-kpi-rs", defailt_features = false, features = ["BUILD_CONFIG_KERNEL"] } freebsd-kpi-r14-0 = { version = "0.2", defailt_features = false, features = ["BUILD_CONFIG_KERNEL"] } #paste = { version = "1.0", default-features = false } bitflags = "2.4.1" # the [env] is in .cargo/config.toml #https://github.com/rust-lang/rust-analyzer/issues/4490