Skip to content

Commit

Permalink
publish near-vm crates (#8858)
Browse files Browse the repository at this point in the history
This is needed for #8782 to go well with the changes incoming with landing near-vm.

I have literally no idea how to test this, so I tried copying the way of doing things of #8782 and hope it’s right.
  • Loading branch information
Ekleog-NEAR authored Apr 3, 2023
1 parent d081870 commit 2bdb42a
Show file tree
Hide file tree
Showing 24 changed files with 59 additions and 23 deletions.
5 changes: 4 additions & 1 deletion runtime/near-vm/lib/README.md
Original file line number Diff line number Diff line change
@@ -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:
Expand Down
5 changes: 3 additions & 2 deletions runtime/near-vm/lib/api/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -5,11 +5,12 @@ description = "High-performance WebAssembly runtime"
categories = ["wasm"]
keywords = ["wasm", "webassembly", "runtime", "vm"]
authors = ["Wasmer Engineering Team <engineering@wasmer.io>", "Near Inc <hello@nearprotocol.com>"]
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"
Expand Down
1 change: 1 addition & 0 deletions runtime/near-vm/lib/api/LICENSE
5 changes: 4 additions & 1 deletion runtime/near-vm/lib/api/README.md
Original file line number Diff line number Diff line change
@@ -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
Expand Down
6 changes: 3 additions & 3 deletions runtime/near-vm/lib/compiler-singlepass/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -5,12 +5,12 @@ description = "Singlepass compiler for Wasmer WebAssembly runtime"
categories = ["wasm"]
keywords = ["wasm", "webassembly", "compiler", "singlepass"]
authors = ["Wasmer Engineering Team <engineering@wasmer.io>", "Near Inc <hello@nearprotocol.com>"]
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"
Expand Down
1 change: 1 addition & 0 deletions runtime/near-vm/lib/compiler-singlepass/LICENSE
4 changes: 3 additions & 1 deletion runtime/near-vm/lib/compiler-singlepass/README.md
Original file line number Diff line number Diff line change
@@ -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.

Expand Down
1 change: 1 addition & 0 deletions runtime/near-vm/lib/compiler-universal
5 changes: 3 additions & 2 deletions runtime/near-vm/lib/compiler/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -5,11 +5,12 @@ description = "Base compiler abstraction for Wasmer WebAssembly runtime"
categories = ["wasm", "no-std"]
keywords = ["wasm", "webassembly", "compiler"]
authors = ["Wasmer Engineering Team <engineering@wasmer.io>", "Near Inc <hello@nearprotocol.com>"]
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"
Expand Down
1 change: 1 addition & 0 deletions runtime/near-vm/lib/compiler/LICENSE
5 changes: 4 additions & 1 deletion runtime/near-vm/lib/compiler/README.md
Original file line number Diff line number Diff line change
@@ -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.

Expand Down
5 changes: 3 additions & 2 deletions runtime/near-vm/lib/engine-universal/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -5,11 +5,12 @@ description = "Wasmer Universal Engine"
categories = ["wasm"]
keywords = ["wasm", "webassembly", "engine", "universal"]
authors = ["Wasmer Engineering Team <engineering@wasmer.io>", "Near Inc <hello@nearprotocol.com>"]
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"
Expand Down
1 change: 1 addition & 0 deletions runtime/near-vm/lib/engine-universal/LICENSE
5 changes: 4 additions & 1 deletion runtime/near-vm/lib/engine-universal/README.md
Original file line number Diff line number Diff line change
@@ -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
Expand Down
5 changes: 3 additions & 2 deletions runtime/near-vm/lib/engine/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -5,11 +5,12 @@ description = "Wasmer Engine abstraction"
categories = ["wasm"]
keywords = ["wasm", "webassembly", "engine"]
authors = ["Wasmer Engineering Team <engineering@wasmer.io>", "Near Inc <hello@nearprotocol.com>"]
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"
Expand Down
1 change: 1 addition & 0 deletions runtime/near-vm/lib/engine/LICENSE
4 changes: 3 additions & 1 deletion runtime/near-vm/lib/engine/README.md
Original file line number Diff line number Diff line change
@@ -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.

Expand Down
5 changes: 3 additions & 2 deletions runtime/near-vm/lib/types/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -5,11 +5,12 @@ description = "Wasmer Common Types"
categories = ["wasm", "no-std", "data-structures"]
keywords = ["wasm", "webassembly", "types"]
authors = ["Wasmer Engineering Team <engineering@wasmer.io>", "Near Inc <hello@nearprotocol.com>"]
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"
Expand Down
1 change: 1 addition & 0 deletions runtime/near-vm/lib/types/LICENSE
4 changes: 3 additions & 1 deletion runtime/near-vm/lib/types/README.md
Original file line number Diff line number Diff line change
@@ -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.
Expand Down
5 changes: 3 additions & 2 deletions runtime/near-vm/lib/vm/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -5,11 +5,12 @@ description = "Runtime library support for Wasmer"
categories = ["wasm"]
keywords = ["wasm", "webassembly"]
authors = ["Wasmer Engineering Team <engineering@wasmer.io>", "Near Inc <hello@nearprotocol.com>"]
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"
Expand Down
1 change: 1 addition & 0 deletions runtime/near-vm/lib/vm/LICENSE
4 changes: 3 additions & 1 deletion runtime/near-vm/lib/vm/README.md
Original file line number Diff line number Diff line change
@@ -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.

Expand Down
2 changes: 2 additions & 0 deletions tools/themis/src/rules.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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(),
Expand Down

0 comments on commit 2bdb42a

Please sign in to comment.