Skip to content

Commit d13724f

Browse files
authored
cpufeatures v0.1.0 (#387)
1 parent b2d97b2 commit d13724f

File tree

6 files changed

+59
-28
lines changed

6 files changed

+59
-28
lines changed

.github/workflows/cpufeatures.yml

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -2,9 +2,9 @@ name: cpufeatures
22

33
on:
44
pull_request:
5-
paths:
6-
- "cpufeatures/**"
7-
- "Cargo.*"
5+
paths:
6+
- "cpufeatures/**"
7+
- "Cargo.*"
88
push:
99
branches: master
1010

@@ -22,7 +22,7 @@ jobs:
2222
strategy:
2323
matrix:
2424
rust:
25-
- 1.39.0 # MSRV
25+
- 1.40.0 # MSRV
2626
- stable
2727
steps:
2828
- uses: actions/checkout@v1

Cargo.lock

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

cpufeatures/CHANGELOG.md

Lines changed: 2 additions & 20 deletions
Original file line numberDiff line numberDiff line change
@@ -5,23 +5,5 @@ All notable changes to this project will be documented in this file.
55
The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/),
66
and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.html).
77

8-
## 0.2.0 (2020-12-01)
9-
### Changed
10-
- Macro now creates a module with several function and the `InitToken` type ([#86])
11-
12-
[#86]: https://github.com/RustCrypto/utils/pull/86
13-
14-
## 0.1.2 (2020-07-20)
15-
### Added
16-
- LICENSE files ([#70])
17-
18-
[#70]: https://github.com/RustCrypto/utils/pull/70
19-
20-
## 0.1.1 (2020-07-14)
21-
### Fixed
22-
- SGX target support ([#68])
23-
24-
[#68]: https://github.com/RustCrypto/utils/pull/68
25-
26-
## 0.1.0 (2020-06-11)
27-
- Initial release
8+
## 0.1.0 (2021-04-29)
9+
- Initial release

cpufeatures/Cargo.toml

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,12 @@
11
[package]
22
name = "cpufeatures"
3-
version = "0.0.0" # Also update html_root_url in lib.rs when bumping this
3+
version = "0.1.0" # Also update html_root_url in lib.rs when bumping this
44
authors = ["RustCrypto Developers"]
55
license = "MIT OR Apache-2.0"
6-
description = "A lightweight and efficient no-std compatible alternative to the is_x86_feature_detected macro"
6+
description = "Lightweight and efficient no-std compatible alternative to the is_x86_feature_detected macro"
77
documentation = "https://docs.rs/cpufeatures"
88
repository = "https://github.com/RustCrypto/utils"
99
keywords = ["cpuid", "target-feature"]
1010
categories = ["no-std"]
1111
edition = "2018"
12+
readme = "README.md"

cpufeatures/README.md

Lines changed: 48 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,48 @@
1+
# RustCrypto: CPU Feature Detection
2+
3+
[![crate][crate-image]][crate-link]
4+
[![Docs][docs-image]][docs-link]
5+
![Apache2/MIT licensed][license-image]
6+
![Rust Version][rustc-image]
7+
[![Project Chat][chat-image]][chat-link]
8+
[![Build Status][build-image]][build-link]
9+
10+
Lightweight and efficient `no_std` compatible alternative to the
11+
`is_x86_feature_detected!` macro providing runtime CPU feature detection
12+
for x86/x86_64 CPUs.
13+
14+
ARM support forthcoming. See [RustCrypto/utils#378].
15+
16+
[Documentation][docs-link]
17+
18+
## License
19+
20+
Licensed under either of:
21+
22+
* [Apache License, Version 2.0](http://www.apache.org/licenses/LICENSE-2.0)
23+
* [MIT license](http://opensource.org/licenses/MIT)
24+
25+
at your option.
26+
27+
### Contribution
28+
29+
Unless you explicitly state otherwise, any contribution intentionally submitted
30+
for inclusion in the work by you, as defined in the Apache-2.0 license, shall be
31+
dual licensed as above, without any additional terms or conditions.
32+
33+
[//]: # (badges)
34+
35+
[crate-image]: https://img.shields.io/crates/v/cpufeatures.svg
36+
[crate-link]: https://crates.io/crates/cpufeatures
37+
[docs-image]: https://docs.rs/cpufeatures/badge.svg
38+
[docs-link]: https://docs.rs/cpufeatures/
39+
[license-image]: https://img.shields.io/badge/license-Apache2.0/MIT-blue.svg
40+
[rustc-image]: https://img.shields.io/badge/rustc-1.40+-blue.svg
41+
[chat-image]: https://img.shields.io/badge/zulip-join_chat-blue.svg
42+
[chat-link]: https://rustcrypto.zulipchat.com/#narrow/stream/260052-utils
43+
[build-image]: https://github.com/RustCrypto/utils/workflows/cpufeatures/badge.svg?branch=master&event=push
44+
[build-link]: https://github.com/RustCrypto/utils/actions/workflows/cpufeatures.yml
45+
46+
[//]: # (general links)
47+
48+
[RustCrypto/utils#378]: https://github.com/RustCrypto/utils/issues/378

cpufeatures/src/lib.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -35,7 +35,7 @@
3535
#![doc(
3636
html_logo_url = "https://raw.githubusercontent.com/RustCrypto/meta/master/logo.svg",
3737
html_favicon_url = "https://raw.githubusercontent.com/RustCrypto/meta/master/logo.svg",
38-
html_root_url = "https://docs.rs/cpufeatures/0.0.0"
38+
html_root_url = "https://docs.rs/cpufeatures/0.1.0"
3939
)]
4040

4141
#[cfg(not(any(target_arch = "x86", target_arch = "x86_64")))]

0 commit comments

Comments
 (0)