diff --git a/Cargo.toml b/Cargo.toml index 9025621..35230e4 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -3,7 +3,12 @@ name = "bitmap-allocator" version = "0.1.0" authors = ["WangRunji "] edition = "2021" +license = "MIT" readme = "README.md" +description = "Bit allocator based on segment tree algorithm." +repository = "https://github.com/rcore-os/bitmap-allocator" +keywords = ["bitmap", "allocator", "memory"] +categories = ["memory-management", "no-std"] [dependencies] bit_field = "0.10" diff --git a/README.md b/README.md index 936309e..4c220bc 100644 --- a/README.md +++ b/README.md @@ -1,6 +1,8 @@ # BitmapAllocator -[![CI](https://github.com/rcore-os/bitmap-allocator/workflows/CI/badge.svg?branch=master)](https://github.com/rcore-os/bitmap-allocator/actions) +[![Crates.io](https://img.shields.io/crates/v/bitmap-allocator)](https://crates.io/crates/bitmap-allocator) +[![Docs.rs](https://docs.rs/bitmap-allocator/badge.svg)](https://docs.rs/bitmap-allocator) +[![CI](https://github.com/rcore-os/bitmap-allocator/actions/workflows/main.yml/badge.svg?branch=main)](https://github.com/rcore-os/bitmap-allocator/actions/workflows/main.yml) [![Coverage Status](https://coveralls.io/repos/github/rcore-os/bitmap-allocator/badge.svg?branch=master)](https://coveralls.io/github/rcore-os/bitmap-allocator?branch=master) Bit allocator based on segment tree algorithm. diff --git a/src/lib.rs b/src/lib.rs index a3c5278..bf926f9 100644 --- a/src/lib.rs +++ b/src/lib.rs @@ -1,6 +1,5 @@ -//! Bit allocator based on segment tree algorithm. - #![no_std] +#![doc = include_str!("../README.md")] use bit_field::BitField; use core::ops::Range;