From 10261ebe20e1ab8b76fe4c48b50840acbb5d6831 Mon Sep 17 00:00:00 2001 From: Yuekai Jia Date: Thu, 18 Jul 2024 19:47:28 +0800 Subject: [PATCH] Update README, publish to crates.io --- Cargo.toml | 4 ++++ README.md | 4 +++- src/lib.rs | 3 +-- 3 files changed, 8 insertions(+), 3 deletions(-) diff --git a/Cargo.toml b/Cargo.toml index 9025621..7295b10 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -3,7 +3,11 @@ name = "bitmap-allocator" version = "0.1.0" authors = ["WangRunji "] edition = "2021" +license = "MIT" readme = "README.md" +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;