kmod-loader 0.2.0

Rust implementation of Linux kernel module loader for loadable kernel module development
Documentation
# THIS FILE IS AUTOMATICALLY GENERATED BY CARGO
#
# When uploading crates to the registry Cargo will automatically
# "normalize" Cargo.toml files for maximal compatibility
# with all versions of Cargo and also rewrite `path` dependencies
# to registry (e.g., crates.io) dependencies.
#
# If you are reading this file be aware that the original Cargo.toml
# will likely look very different (and much more reasonable).
# See Cargo.toml.orig for the original contents.

[package]
edition = "2024"
name = "kmod-loader"
version = "0.2.0"
authors = ["Godones <chenlinfeng25@outlook.com>"]
build = false
autolib = false
autobins = false
autoexamples = false
autotests = false
autobenches = false
description = "Rust implementation of Linux kernel module loader for loadable kernel module development"
homepage = "https://github.com/Godones/rkm"
documentation = "https://docs.rs/kmod-loader"
readme = "README.md"
keywords = [
    "kernel",
    "linux",
    "lkm-loader",
    "lkm",
    "no-std",
]
license-file = "LICENSE"
repository = "https://github.com/Godones/rkm"
resolver = "2"

[features]
default = ["module-sections"]
module-sections = []

[lib]
name = "kmod_loader"
path = "src/lib.rs"

[[example]]
name = "loader"
path = "examples/loader.rs"

[[example]]
name = "parse_elf"
path = "examples/parse_elf.rs"

[dependencies.axerrno]
version = "0.2"

[dependencies.bitfield-struct]
version = "0.13"

[dependencies.bitflags]
version = "2.10"

[dependencies.cfg-if]
version = "1.0"

[dependencies.goblin]
version = "0.10"
features = [
    "elf32",
    "elf64",
    "endian_fd",
]
default-features = false

[dependencies.int-enum]
version = "1.2.0"

[dependencies.kapi]
version = "0.2.0"
features = ["kparameter"]

[dependencies.kmod-tools]
version = "0.2.0"

[dependencies.log]
version = "0.4"

[dependencies.paste]
version = "1.0"

[dev-dependencies.env_logger]
version = "0.11"

[dev-dependencies.memmap2]
version = "0.9.9"