Compare commits

...

7 Commits

Author SHA1 Message Date
Taiki Endo 418b968cac Update build status badge 2021-03-20 17:29:25 +09:00
Taiki Endo f20f696276
Merge pull request #16 from smol-rs/next
Bump to v1.1.0
2021-03-20 16:34:57 +09:00
Taiki Endo 7deb87e9db Bump to v1.1.0 2021-03-20 16:31:51 +09:00
Taiki Endo 69abc54c72
Merge pull request #15 from smol-rs/link
Fix broken links
2021-03-20 16:30:52 +09:00
Taiki Endo 1b95e75635 Fix broken links 2021-03-20 16:28:08 +09:00
Taiki Endo b0a09d8eda
Merge pull request #14 from smol-rs/github-actions
Migrate CI to GitHub Actions
2021-03-20 16:25:19 +09:00
Taiki Endo abd6fc29f7 Migrate CI to GitHub Actions 2021-03-20 16:21:49 +09:00
8 changed files with 88 additions and 14 deletions

36
.github/workflows/build-and-test.yaml vendored Normal file
View File

@ -0,0 +1,36 @@
name: Build and test
on:
push:
branches:
- master
pull_request:
jobs:
build_and_test:
runs-on: ${{ matrix.os }}
strategy:
fail-fast: false
matrix:
os: [ubuntu-latest]
rust: [nightly, beta, stable]
steps:
- uses: actions/checkout@v2
- name: Install latest ${{ matrix.rust }}
uses: actions-rs/toolchain@v1
with:
toolchain: ${{ matrix.rust }}
profile: minimal
override: true
- name: Run cargo check
uses: actions-rs/cargo@v1
with:
command: check
args: --all --benches --bins --examples --tests --all-features
- name: Run cargo test
uses: actions-rs/cargo@v1
with:
command: test

23
.github/workflows/lint.yaml vendored Normal file
View File

@ -0,0 +1,23 @@
name: Lint
on:
push:
branches:
- master
pull_request:
jobs:
clippy:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- uses: actions-rs/toolchain@v1
with:
toolchain: stable
profile: minimal
components: clippy
- uses: actions-rs/clippy-check@v1
with:
token: ${{ secrets.GITHUB_TOKEN }}
args: --all-features -- -W clippy::all

17
.github/workflows/security.yaml vendored Normal file
View File

@ -0,0 +1,17 @@
name: Security audit
on:
push:
branches:
- master
pull_request:
jobs:
security_audit:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- uses: actions-rs/audit-check@v1
with:
token: ${{ secrets.GITHUB_TOKEN }}

View File

@ -1,10 +0,0 @@
language: rust
rust:
- stable
- beta
- nightly
matrix:
allow_failures:
- rust: nightly

7
CHANGELOG.md Normal file
View File

@ -0,0 +1,7 @@
# Version 1.1.0
- Make the crate `#![no_std]`.
# Version 1.0.0
- Initial version.

View File

@ -1,6 +1,6 @@
[package]
name = "vec-arena"
version = "1.0.0"
version = "1.1.0"
authors = ["Stjepan Glavina <stjepang@gmail.com>"]
edition = "2018"
description = "A simple object arena"

View File

@ -1,6 +1,7 @@
# vec-arena
[![Build Status](https://travis-ci.org/smol-rs/vec-arena.svg?branch=master)](https://travis-ci.org/smol-rs/vec-arena)
[![Build](https://github.com/smol-rs/vec-arena/workflows/Build%20and%20test/badge.svg)](
https://github.com/smol-rs/vec-arena/actions)
[![License](https://img.shields.io/badge/license-Apache--2.0_OR_MIT-blue.svg)](https://github.com/smol-rs/vec-arena)
[![Cargo](https://img.shields.io/crates/v/vec-arena.svg)](https://crates.io/crates/vec-arena)
[![Documentation](https://docs.rs/vec-arena/badge.svg)](https://docs.rs/vec-arena)

View File

@ -10,8 +10,8 @@
//!
//! Some data structures built using `Arena<T>`:
//!
//! * [Doubly linked list](https://github.com/smol-rs/vec-arena/blob/master/examples/linked_list.rs)
//! * [Splay tree](https://github.com/smol-rs/vec-arena/blob/master/examples/splay_tree.rs)
//! * [Doubly linked list](https://github.com/smol-rs/vec-arena/blob/master/examples/linked-list.rs)
//! * [Splay tree](https://github.com/smol-rs/vec-arena/blob/master/examples/splay-tree.rs)
#![no_std]
#![forbid(unsafe_code)]