diff --git a/runtime/near-vm/lib/README.md b/runtime/near-vm/lib/README.md index aaf820c8124..4c13536000c 100644 --- a/runtime/near-vm/lib/README.md +++ b/runtime/near-vm/lib/README.md @@ -1,4 +1,7 @@ -# The Wasmer runtime crates +# The NearVM runtime crates + +This crate set is a fork of Wasmer. A significant number of things +changed, but the documentation is not up-to-date yet. The philosophy of Wasmer is to be very modular by design. It's composed of a set of crates. We can group them as follows: diff --git a/runtime/near-vm/lib/api/Cargo.toml b/runtime/near-vm/lib/api/Cargo.toml index db4a482efb5..b1d8c4ff11a 100644 --- a/runtime/near-vm/lib/api/Cargo.toml +++ b/runtime/near-vm/lib/api/Cargo.toml @@ -5,11 +5,12 @@ description = "High-performance WebAssembly runtime" categories = ["wasm"] keywords = ["wasm", "webassembly", "runtime", "vm"] authors = ["Wasmer Engineering Team ", "Near Inc "] -repository = "https://github.com/wasmerio/wasmer" +repository = "https://github.com/near/nearcore" license = "MIT" readme = "README.md" edition = "2021" -publish = false +publish = true +rust-version.workspace = true [lib] name = "wasmer" diff --git a/runtime/near-vm/lib/api/LICENSE b/runtime/near-vm/lib/api/LICENSE new file mode 120000 index 00000000000..30cff7403da --- /dev/null +++ b/runtime/near-vm/lib/api/LICENSE @@ -0,0 +1 @@ +../../LICENSE \ No newline at end of file diff --git a/runtime/near-vm/lib/api/README.md b/runtime/near-vm/lib/api/README.md index f95eb90d5df..d330c51ea20 100644 --- a/runtime/near-vm/lib/api/README.md +++ b/runtime/near-vm/lib/api/README.md @@ -1,4 +1,7 @@ -# `wasmer` [![Build Status](https://github.com/wasmerio/wasmer/workflows/build/badge.svg?style=flat-square)](https://github.com/wasmerio/wasmer/actions?query=workflow%3Abuild) [![Join Wasmer Slack](https://img.shields.io/static/v1?label=Slack&message=join%20chat&color=brighgreen&style=flat-square)](https://slack.wasmer.io) [![MIT License](https://img.shields.io/github/license/wasmerio/wasmer.svg?style=flat-square)](https://github.com/wasmerio/wasmer/blob/master/LICENSE) [![crates.io](https://img.shields.io/crates/v/wasmer.svg)](https://crates.io/crates/wasmer) +# `near-vm` + +This crate is a fork of `wasmer`. A significant number of things +changed, but the documentation is not up-to-date yet. [`Wasmer`](https://wasmer.io/) is the most popular [WebAssembly](https://webassembly.org/) runtime for Rust. It supports diff --git a/runtime/near-vm/lib/compiler-singlepass/Cargo.toml b/runtime/near-vm/lib/compiler-singlepass/Cargo.toml index 9413b4be1e6..c5e3cd461fb 100644 --- a/runtime/near-vm/lib/compiler-singlepass/Cargo.toml +++ b/runtime/near-vm/lib/compiler-singlepass/Cargo.toml @@ -5,12 +5,12 @@ description = "Singlepass compiler for Wasmer WebAssembly runtime" categories = ["wasm"] keywords = ["wasm", "webassembly", "compiler", "singlepass"] authors = ["Wasmer Engineering Team ", "Near Inc "] -repository = "https://github.com/wasmerio/wasmer" -documentation = "https://docs.rs/wasmer-compiler-singlepass/" +repository = "https://github.com/near/nearcore" license = "MIT" readme = "README.md" edition = "2021" -publish = false +publish = true +rust-version.workspace = true [lib] name = "wasmer_compiler_singlepass" diff --git a/runtime/near-vm/lib/compiler-singlepass/LICENSE b/runtime/near-vm/lib/compiler-singlepass/LICENSE new file mode 120000 index 00000000000..30cff7403da --- /dev/null +++ b/runtime/near-vm/lib/compiler-singlepass/LICENSE @@ -0,0 +1 @@ +../../LICENSE \ No newline at end of file diff --git a/runtime/near-vm/lib/compiler-singlepass/README.md b/runtime/near-vm/lib/compiler-singlepass/README.md index 0cef04e0dd4..f82721f4a6e 100644 --- a/runtime/near-vm/lib/compiler-singlepass/README.md +++ b/runtime/near-vm/lib/compiler-singlepass/README.md @@ -1,4 +1,6 @@ -# `wasmer-compiler-singlepass` [![Build Status](https://github.com/wasmerio/wasmer/workflows/build/badge.svg?style=flat-square)](https://github.com/wasmerio/wasmer/actions?query=workflow%3Abuild) [![Join Wasmer Slack](https://img.shields.io/static/v1?label=Slack&message=join%20chat&color=brighgreen&style=flat-square)](https://slack.wasmer.io) [![MIT License](https://img.shields.io/github/license/wasmerio/wasmer.svg?style=flat-square)](https://github.com/wasmerio/wasmer/blob/master/LICENSE) [![crates.io](https://img.shields.io/crates/v/wasmer-compiler-singlepass.svg)](https://crates.io/crates/wasmer-compiler-singlepass) +# `near-vm-compiler-singlepass` + +This crate is a fork of `wasmer-compiler-singlepass`. A significant number of things changed, but the documentation is not up-to-date yet. This crate contains a compiler implementation based on the Singlepass linear compiler. diff --git a/runtime/near-vm/lib/compiler-universal b/runtime/near-vm/lib/compiler-universal new file mode 120000 index 00000000000..46b165c73dd --- /dev/null +++ b/runtime/near-vm/lib/compiler-universal @@ -0,0 +1 @@ +../../../../licenses/LICENSE-MIT \ No newline at end of file diff --git a/runtime/near-vm/lib/compiler/Cargo.toml b/runtime/near-vm/lib/compiler/Cargo.toml index 19546502185..8c893a9627a 100644 --- a/runtime/near-vm/lib/compiler/Cargo.toml +++ b/runtime/near-vm/lib/compiler/Cargo.toml @@ -5,11 +5,12 @@ description = "Base compiler abstraction for Wasmer WebAssembly runtime" categories = ["wasm", "no-std"] keywords = ["wasm", "webassembly", "compiler"] authors = ["Wasmer Engineering Team ", "Near Inc "] -repository = "https://github.com/wasmerio/wasmer" +repository = "https://github.com/near/nearcore" license = "MIT OR Apache-2.0 WITH LLVM-exception" readme = "README.md" edition = "2021" -publish = false +publish = true +rust-version.workspace = true [lib] name = "wasmer_compiler" diff --git a/runtime/near-vm/lib/compiler/LICENSE b/runtime/near-vm/lib/compiler/LICENSE new file mode 120000 index 00000000000..30cff7403da --- /dev/null +++ b/runtime/near-vm/lib/compiler/LICENSE @@ -0,0 +1 @@ +../../LICENSE \ No newline at end of file diff --git a/runtime/near-vm/lib/compiler/README.md b/runtime/near-vm/lib/compiler/README.md index 093c6afa62d..e9b6a5f557b 100644 --- a/runtime/near-vm/lib/compiler/README.md +++ b/runtime/near-vm/lib/compiler/README.md @@ -1,4 +1,7 @@ -# `wasmer-compiler` [![Build Status](https://github.com/wasmerio/wasmer/workflows/build/badge.svg?style=flat-square)](https://github.com/wasmerio/wasmer/actions?query=workflow%3Abuild) [![Join Wasmer Slack](https://img.shields.io/static/v1?label=Slack&message=join%20chat&color=brighgreen&style=flat-square)](https://slack.wasmer.io) [![MIT License](https://img.shields.io/github/license/wasmerio/wasmer.svg?style=flat-square)](https://github.com/wasmerio/wasmer/blob/master/LICENSE) +# `near-vm-compiler` + +This crate is a fork of `wasmer-compiler`. A significant number of things +changed, but the documentation is not up-to-date yet. This crate is the base for Compiler implementations. diff --git a/runtime/near-vm/lib/engine-universal/Cargo.toml b/runtime/near-vm/lib/engine-universal/Cargo.toml index a922a66189a..d8d1c5d45ba 100644 --- a/runtime/near-vm/lib/engine-universal/Cargo.toml +++ b/runtime/near-vm/lib/engine-universal/Cargo.toml @@ -5,11 +5,12 @@ description = "Wasmer Universal Engine" categories = ["wasm"] keywords = ["wasm", "webassembly", "engine", "universal"] authors = ["Wasmer Engineering Team ", "Near Inc "] -repository = "https://github.com/wasmerio/wasmer" +repository = "https://github.com/near/nearcore" license = "MIT OR Apache-2.0 WITH LLVM-exception " readme = "README.md" edition = "2021" -publish = false +publish = true +rust-version.workspace = true [lib] name = "wasmer_engine_universal" diff --git a/runtime/near-vm/lib/engine-universal/LICENSE b/runtime/near-vm/lib/engine-universal/LICENSE new file mode 120000 index 00000000000..30cff7403da --- /dev/null +++ b/runtime/near-vm/lib/engine-universal/LICENSE @@ -0,0 +1 @@ +../../LICENSE \ No newline at end of file diff --git a/runtime/near-vm/lib/engine-universal/README.md b/runtime/near-vm/lib/engine-universal/README.md index 93d9ac321f5..1d3aae77b0b 100644 --- a/runtime/near-vm/lib/engine-universal/README.md +++ b/runtime/near-vm/lib/engine-universal/README.md @@ -1,4 +1,7 @@ -# `wasmer-engine-universal` [![Build Status](https://github.com/wasmerio/wasmer/workflows/build/badge.svg?style=flat-square)](https://github.com/wasmerio/wasmer/actions?query=workflow%3Abuild) [![Join Wasmer Slack](https://img.shields.io/static/v1?label=Slack&message=join%20chat&color=brighgreen&style=flat-square)](https://slack.wasmer.io) [![MIT License](https://img.shields.io/github/license/wasmerio/wasmer.svg?style=flat-square)](https://github.com/wasmerio/wasmer/blob/master/LICENSE) +# `near-vm-engine-universal` + +This crate is a fork of `wasmer-engine-universal`. A significant number of +things changed, but the documentation is not up-to-date yet. The Wasmer Universal engine is usable with any compiler implementation based on [`wasmer-compiler`]. After the compiler process the result, the Universal diff --git a/runtime/near-vm/lib/engine/Cargo.toml b/runtime/near-vm/lib/engine/Cargo.toml index a3292073151..8856ad0f120 100644 --- a/runtime/near-vm/lib/engine/Cargo.toml +++ b/runtime/near-vm/lib/engine/Cargo.toml @@ -5,11 +5,12 @@ description = "Wasmer Engine abstraction" categories = ["wasm"] keywords = ["wasm", "webassembly", "engine"] authors = ["Wasmer Engineering Team ", "Near Inc "] -repository = "https://github.com/wasmerio/wasmer" +repository = "https://github.com/near/nearcore" license = "MIT OR Apache-2.0 WITH LLVM-exception " readme = "README.md" edition = "2021" -publish = false +publish = true +rust-version.workspace = true [lib] name = "wasmer_engine" diff --git a/runtime/near-vm/lib/engine/LICENSE b/runtime/near-vm/lib/engine/LICENSE new file mode 120000 index 00000000000..30cff7403da --- /dev/null +++ b/runtime/near-vm/lib/engine/LICENSE @@ -0,0 +1 @@ +../../LICENSE \ No newline at end of file diff --git a/runtime/near-vm/lib/engine/README.md b/runtime/near-vm/lib/engine/README.md index c4de85c25dc..e5eb1ac9c68 100644 --- a/runtime/near-vm/lib/engine/README.md +++ b/runtime/near-vm/lib/engine/README.md @@ -1,4 +1,6 @@ -# `wasmer-engine` [![Build Status](https://github.com/wasmerio/wasmer/workflows/build/badge.svg?style=flat-square)](https://github.com/wasmerio/wasmer/actions?query=workflow%3Abuild) [![Join Wasmer Slack](https://img.shields.io/static/v1?label=Slack&message=join%20chat&color=brighgreen&style=flat-square)](https://slack.wasmer.io) [![MIT License](https://img.shields.io/github/license/wasmerio/wasmer.svg?style=flat-square)](https://github.com/wasmerio/wasmer/blob/master/LICENSE) +# `near-vm-engine` + +This crate is a fork of `wasmer-engine`. A significant number of things changed, but the documentation is not up-to-date yet. This crate is the general abstraction for creating Engines in Wasmer. diff --git a/runtime/near-vm/lib/types/Cargo.toml b/runtime/near-vm/lib/types/Cargo.toml index e2ecdfbad95..15f276a6b69 100644 --- a/runtime/near-vm/lib/types/Cargo.toml +++ b/runtime/near-vm/lib/types/Cargo.toml @@ -5,11 +5,12 @@ description = "Wasmer Common Types" categories = ["wasm", "no-std", "data-structures"] keywords = ["wasm", "webassembly", "types"] authors = ["Wasmer Engineering Team ", "Near Inc "] -repository = "https://github.com/wasmerio/wasmer" +repository = "https://github.com/near/nearcore" license = "MIT OR Apache-2.0 WITH LLVM-exception" readme = "README.md" edition = "2021" -publish = false +publish = true +rust-version.workspace = true [lib] name = "wasmer_types" diff --git a/runtime/near-vm/lib/types/LICENSE b/runtime/near-vm/lib/types/LICENSE new file mode 120000 index 00000000000..30cff7403da --- /dev/null +++ b/runtime/near-vm/lib/types/LICENSE @@ -0,0 +1 @@ +../../LICENSE \ No newline at end of file diff --git a/runtime/near-vm/lib/types/README.md b/runtime/near-vm/lib/types/README.md index 799c1bcb4cc..54608f280d2 100644 --- a/runtime/near-vm/lib/types/README.md +++ b/runtime/near-vm/lib/types/README.md @@ -1,4 +1,6 @@ -# `wasmer-types` [![Build Status](https://github.com/wasmerio/wasmer/workflows/build/badge.svg?style=flat-square)](https://github.com/wasmerio/wasmer/actions?query=workflow%3Abuild) [![Join Wasmer Slack](https://img.shields.io/static/v1?label=Slack&message=join%20chat&color=brighgreen&style=flat-square)](https://slack.wasmer.io) [![MIT License](https://img.shields.io/github/license/wasmerio/wasmer.svg?style=flat-square)](https://github.com/wasmerio/wasmer/blob/master/LICENSE) +# `near-vm-types` + +This crate is a fork of `wasmer-types`. A significant number of things changed, but the documentation is not up-to-date yet. This library provides all the types and traits necessary to use WebAssembly easily anywhere. diff --git a/runtime/near-vm/lib/vm/Cargo.toml b/runtime/near-vm/lib/vm/Cargo.toml index 3d678360685..33fbc86aaae 100644 --- a/runtime/near-vm/lib/vm/Cargo.toml +++ b/runtime/near-vm/lib/vm/Cargo.toml @@ -5,11 +5,12 @@ description = "Runtime library support for Wasmer" categories = ["wasm"] keywords = ["wasm", "webassembly"] authors = ["Wasmer Engineering Team ", "Near Inc "] -repository = "https://github.com/wasmerio/wasmer" +repository = "https://github.com/near/nearcore" license = "MIT OR Apache-2.0 WITH LLVM-exception" readme = "README.md" edition = "2021" -publish = false +publish = true +rust-version.workspace = true [lib] name = "wasmer_vm" diff --git a/runtime/near-vm/lib/vm/LICENSE b/runtime/near-vm/lib/vm/LICENSE new file mode 120000 index 00000000000..30cff7403da --- /dev/null +++ b/runtime/near-vm/lib/vm/LICENSE @@ -0,0 +1 @@ +../../LICENSE \ No newline at end of file diff --git a/runtime/near-vm/lib/vm/README.md b/runtime/near-vm/lib/vm/README.md index f534f97cd93..9ee5ac2a66f 100644 --- a/runtime/near-vm/lib/vm/README.md +++ b/runtime/near-vm/lib/vm/README.md @@ -1,4 +1,6 @@ -# `wasmer-vm` [![Build Status](https://github.com/wasmerio/wasmer/workflows/build/badge.svg?style=flat-square)](https://github.com/wasmerio/wasmer/actions?query=workflow%3Abuild) [![Join Wasmer Slack](https://img.shields.io/static/v1?label=Slack&message=join%20chat&color=brighgreen&style=flat-square)](https://slack.wasmer.io) [![MIT License](https://img.shields.io/github/license/wasmerio/wasmer.svg?style=flat-square)](https://github.com/wasmerio/wasmer/blob/master/LICENSE) +# `near-vm-vm` + +This crate is a fork of `wasmer-vm`. A significant number of things changed, but the documentation is not up-to-date yet. This crate contains the Wasmer VM runtime library, supporting the Wasm ABI used by any [`wasmer-engine`] implementation. diff --git a/tools/themis/src/rules.rs b/tools/themis/src/rules.rs index 355782f61d6..c66b39fbae8 100644 --- a/tools/themis/src/rules.rs +++ b/tools/themis/src/rules.rs @@ -232,6 +232,8 @@ pub fn publishable_has_unified_license(workspace: &Workspace) -> anyhow::Result< .filter(|pkg| { utils::is_publishable(pkg) && matches!(pkg.parsed.license, Some(ref l) if l != EXPECTED_LICENSE) + // near-vm is a wasmer fork, so we don’t control the license + && !pkg.parsed.name.starts_with("near-vm") }) .map(|pkg| Outlier { path: pkg.parsed.manifest_path.clone(),