[package] name = "kspin" version = "0.1.0" edition = "2021" authors = ["Yuekai Jia "] description = "Spinlocks used for kernel space that can disable preemption or IRQs in the critical section." license = "GPL-3.0-or-later OR Apache-2.0 OR MulanPSL-2.0" homepage = "https://github.com/arceos-org/arceos" repository = "https://github.com/arceos-org/kspin" documentation = "https://docs.rs/kspin" keywords = ["arceos", "synchronization", "spinlock", "no-irq"] categories = ["os", "no-std"] [features] # To use in the multi-core environment smp = [] default = [] [dependencies] cfg-if = "1.0" kernel_guard = "0.1"