# 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 = "ax-posix-api"
version = "0.5.3"
authors = [
    "Yuekai Jia <equation618@gmail.com>",
    "yanjuguang <coolyanjg@163.com>",
    "wudashuai <wu-ds20@mails.tsinghua.edu.cn>",
    "yfblock <321353225@qq.com>",
    "scPointer <bhy18@mails.tsinghua.edu.cn>",
    "Shiping Yuan <robert_yuan@pku.edu.com>",
]
build = "build.rs"
include = [
    "src/**/*.rs",
    "src/ctypes_gen.rs",
    "Cargo.toml",
    "build.rs",
    "ctypes.h",
]
autolib = false
autobins = false
autoexamples = false
autotests = false
autobenches = false
description = "POSIX-compatible APIs for ArceOS modules"
readme = false
license = "Apache-2.0"
repository = "https://github.com/rcore-os/tgoskits"

[features]
alloc = [
    "dep:ax-alloc",
    "ax-feat/alloc",
]
default = []
epoll = ["fd"]
fd = [
    "alloc",
    "dep:scope-local",
]
fs = [
    "dep:ax-fs",
    "ax-feat/fs",
    "fd",
]
irq = ["ax-feat/irq"]
multitask = [
    "ax-task/multitask",
    "ax-feat/multitask",
    "ax-sync/multitask",
]
net = [
    "dep:ax-net",
    "ax-feat/net",
    "fd",
]
pipe = ["fd"]
select = ["fd"]
smp = ["ax-feat/smp"]

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

[dependencies.ax-alloc]
version = "0.5.2"
optional = true

[dependencies.ax-config]
version = "0.5.2"

[dependencies.ax-errno]
version = "0.4.2"

[dependencies.ax-feat]
version = "0.5.2"

[dependencies.ax-fs]
version = "0.5.2"
optional = true

[dependencies.ax-hal]
version = "0.5.2"

[dependencies.ax-io]
version = "0.5.0"

[dependencies.ax-log]
version = "0.5.2"

[dependencies.ax-net]
version = "0.5.2"
optional = true

[dependencies.ax-runtime]
version = "0.5.2"

[dependencies.ax-sync]
version = "0.5.2"

[dependencies.ax-task]
version = "0.5.2"
optional = true

[dependencies.flatten_objects]
version = "0.2"

[dependencies.lazy_static]
version = "1.5"
features = ["spin_no_std"]

[dependencies.scope-local]
version = "0.3.2"
optional = true

[dependencies.spin]
version = "0.10"

[build-dependencies.bindgen]
version = "0.72"
