Skip to content

Commit

Permalink
Update Cranelift's documentation after the merger. (bytecodealliance#…
Browse files Browse the repository at this point in the history
…1238)

Update the documentation for the merger, and also for various changes in
Cranelift. Remove some old obsolete documentation, and convert the remaining
Sphinx files to Markdown. Some of the remaining content is still out of
date, but this is a step forward.
  • Loading branch information
alexcrichton authored Mar 5, 2020
1 parent fc692f6 commit 3179dcf
Show file tree
Hide file tree
Showing 36 changed files with 422 additions and 1,313 deletions.
2 changes: 1 addition & 1 deletion Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ version = "0.12.0"
authors = ["The Wasmtime Project Developers"]
description = "Command-line interface for Wasmtime"
license = "Apache-2.0 WITH LLVM-exception"
documentation = "https://cranelift.readthedocs.io/"
documentation = "https://bytecodealliance.github.io/wasmtime/cli.html"
categories = ["wasm"]
keywords = ["webassembly", "wasm"]
repository = "https://github.com/bytecodealliance/wasmtime"
Expand Down
4 changes: 3 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -65,7 +65,7 @@ Hello, world!
with your needs. It fits on tiny chips as well as makes use of huge servers.
Wasmtime can be embedded into almost any application too.

* **Fast**. Wasmtime is built on the optimizing Cranelift code generator to
* **Fast**. Wasmtime is built on the optimizing [Cranelift] code generator to
quickly generate high-quality machine code at runtime.

* **Configurable**. Whether you need to precompile your wasm ahead of time,
Expand All @@ -82,6 +82,8 @@ Hello, world!
well. Wasmtime developers are intimately engaged with the WebAssembly
standards process all along the way too.

[Cranelift]: https://github.com/bytecodealliance/wasmtime/blob/master/cranelift/README.md

## Documentation

[📚 Read the Wasmtime guide here! 📚][guide]
Expand Down
2 changes: 1 addition & 1 deletion cranelift/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ authors = ["The Cranelift Project Developers"]
version = "0.59.0"
description = "Binaries for testing the Cranelift libraries"
license = "Apache-2.0 WITH LLVM-exception"
documentation = "https://cranelift.readthedocs.io/"
documentation = "https://github.com/bytecodealliance/wasmtime/blob/master/cranelift/docs/index.md"
repository = "https://github.com/bytecodealliance/cranelift"
publish = false
edition = "2018"
Expand Down
22 changes: 2 additions & 20 deletions cranelift/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -4,19 +4,16 @@ Cranelift Code Generator
**A [Bytecode Alliance][BA] project**

Cranelift is a low-level retargetable code generator. It translates a
[target-independent intermediate
representation](https://cranelift.readthedocs.io/en/latest/ir.html)
[target-independent intermediate representation](docs/ir.md)
into executable machine code.

[BA]: https://bytecodealliance.org/
[![Documentation Status](https://readthedocs.org/projects/cranelift/badge/?version=latest)](https://cranelift.readthedocs.io/en/latest/?badge=latest)
[![Build Status](https://github.com/bytecodealliance/cranelift/workflows/CI/badge.svg)](https://github.com/bytecodealliance/cranelift/actions)
[![Fuzzit Status](https://app.fuzzit.dev/badge?org_id=bytecodealliance)](https://app.fuzzit.dev/orgs/bytecodealliance/dashboard)
[![Chat](https://img.shields.io/badge/chat-zulip-brightgreen.svg)](https://bytecodealliance.zulipchat.com/#narrow/stream/217117-cranelift/topic/general)
![Minimum rustc 1.37](https://img.shields.io/badge/rustc-1.37+-green.svg)

For more information, see [the
documentation](https://cranelift.readthedocs.io/en/latest/?badge=latest).
For more information, see [the documentation](docs/index.md).

For an example of how to use the JIT, see the [SimpleJIT Demo], which
implements a toy language.
Expand Down Expand Up @@ -160,21 +157,6 @@ features = ["release_max_level_warn"]
```
</details>

<details>
<summary>Building the documentation</summary>

Cranelift's documentation is [published online](https://cranelift.readthedocs.io/).

To build the documentation locally, you need the [Sphinx documentation
generator](http://www.sphinx-doc.org/) as well as Python 3::

$ pip install sphinx sphinx-autobuild sphinx_rtd_theme
$ cd cranelift/docs
$ make html
$ open _build/html/index.html

</details>

Editor Support
--------------

Expand Down
2 changes: 1 addition & 1 deletion cranelift/bforest/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ name = "cranelift-bforest"
version = "0.59.0"
description = "A forest of B+-trees"
license = "Apache-2.0 WITH LLVM-exception"
documentation = "https://cranelift.readthedocs.io/"
documentation = "https://docs.rs/cranelift-bforest"
repository = "https://github.com/bytecodealliance/cranelift"
categories = ["no-std"]
readme = "README.md"
Expand Down
2 changes: 1 addition & 1 deletion cranelift/codegen/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ name = "cranelift-codegen"
version = "0.59.0"
description = "Low-level code generator library"
license = "Apache-2.0 WITH LLVM-exception"
documentation = "https://cranelift.readthedocs.io/"
documentation = "https://docs.rs/cranelift-codegen"
repository = "https://github.com/bytecodealliance/cranelift"
categories = ["no-std"]
readme = "README.md"
Expand Down
2 changes: 1 addition & 1 deletion cranelift/codegen/src/result.rs
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ pub enum CodegenError {
/// Cranelift can compile very large and complicated functions, but the [implementation has
/// limits][limits] that cause compilation to fail when they are exceeded.
///
/// [limits]: https://cranelift.readthedocs.io/en/latest/ir.html#implementation-limits
/// [limits]: https://github.com/bytecodealliance/wasmtime/blob/master/cranelift/docs/ir.md#implementation-limits
#[error("Implementation limit exceeded")]
ImplLimitExceeded,

Expand Down
24 changes: 0 additions & 24 deletions cranelift/docs/Makefile

This file was deleted.

16 changes: 0 additions & 16 deletions cranelift/docs/callex.clif

This file was deleted.

69 changes: 0 additions & 69 deletions cranelift/docs/clif_lexer.py

This file was deleted.

Loading

0 comments on commit 3179dcf

Please sign in to comment.