Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add Readme and char/u8 const fn #20

Closed
wants to merge 3 commits into from
Closed
Show file tree
Hide file tree
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
28 changes: 28 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,28 @@
# caniuse.rs

A website to know which feature you can or cannot use in Rust.

## Quickstart

Head over [caniuse.rs](https://caniuse.rs/) and search for the Rust feature you are interested in.

## Developpement

The project uses a standard Rust toolchain.

### Pre-requisites

- **Cargo**
- **wasm-pack**: `cargo install wasm-pack`
- **Python3**
- **rollup**: `npm i -g rollup`

### Commands

Once the requirements are filled up you can run the project with `./x.py serve`

### Creates a new feature

You may want to look at issue [#16](https://github.com/jplatte/caniuse.rs/issues/16) for missing features.

When adding a new feature check on `FeatureData` in `build.rs` file for every available options
10 changes: 10 additions & 0 deletions data/1.52/const_char_ascii_case.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
+++
homersimpsons marked this conversation as resolved.
Show resolved Hide resolved
title = "`char::to_ascii_uppercase()`, `char::to_ascii_lowercase()` and `char::eq_ignore_ascii_case()` as `const fn`"
jplatte marked this conversation as resolved.
Show resolved Hide resolved
impl_pr_id = 82078
flag = "const_ascii_methods_on_intrinsics"
items = [
"char::to_ascii_uppercase()",
"char::to_ascii_lowercase()",
"char::eq_ignore_ascii_case()",
]
+++
9 changes: 9 additions & 0 deletions data/1.52/const_char_len_utf.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
+++
title = "`char::len_utf8()` and `char::len_utf16()` as `const fn`"
impl_pr_id = 82078
flag = "const_char_len_utf"
items = [
"char::len_utf8()",
"char::len_utf16()",
]
+++
10 changes: 10 additions & 0 deletions data/1.52/const_u8_ascii_case.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
+++
title = "`u8::to_ascii_uppercase()`, `u8::to_ascii_lowercase()` and `u8::eq_ignore_ascii_case()` as `const fn`"
impl_pr_id = 82078
flag = "const_ascii_methods_on_intrinsics"
items = [
"u8::to_ascii_uppercase()",
"u8::to_ascii_lowercase()",
"u8::eq_ignore_ascii_case()",
]
+++