Skip to content

Commit fe9c21b

Browse files
Prepare deployment (#3150)
1 parent 34449c6 commit fe9c21b

File tree

10 files changed

+178
-167
lines changed

10 files changed

+178
-167
lines changed

.github/workflows/ci.yml

Lines changed: 24 additions & 24 deletions
Original file line numberDiff line numberDiff line change
@@ -75,28 +75,28 @@ jobs:
7575
- run: rustup target add i686-unknown-linux-gnu
7676
# We test for both x86_64 and i686 because there is some `cfg(target_arch = "x86_64")`
7777
# conditional compilation within the source code.
78-
- run: RUSTFLAGS=-Dwarnings cargo check --target x86_64-unknown-linux-gnu --package smoldot --locked --no-default-features
79-
- run: RUSTFLAGS=-Dwarnings cargo check --target i686-unknown-linux-gnu --package smoldot --locked --no-default-features
80-
- run: RUSTFLAGS=-Dwarnings cargo check --target x86_64-unknown-linux-gnu --package smoldot --locked --no-default-features --features database-sqlite
81-
- run: RUSTFLAGS=-Dwarnings cargo check --target i686-unknown-linux-gnu --package smoldot --locked --no-default-features --features database-sqlite
82-
- run: RUSTFLAGS=-Dwarnings cargo check --target x86_64-unknown-linux-gnu --package smoldot --locked --no-default-features --features std
83-
- run: RUSTFLAGS=-Dwarnings cargo check --target i686-unknown-linux-gnu --package smoldot --locked --no-default-features --features std
84-
- run: RUSTFLAGS=-Dwarnings cargo check --target x86_64-unknown-linux-gnu --package smoldot --locked --no-default-features --features database-sqlite --features std
85-
- run: RUSTFLAGS=-Dwarnings cargo check --target i686-unknown-linux-gnu --package smoldot --locked --no-default-features --features database-sqlite --features std
86-
- run: RUSTFLAGS=-Dwarnings cargo check --target x86_64-unknown-linux-gnu --package smoldot --locked --no-default-features --features database-sqlite --features wasmtime
87-
- run: RUSTFLAGS=-Dwarnings cargo check --target i686-unknown-linux-gnu --package smoldot --locked --no-default-features --features database-sqlite --features wasmtime
88-
- run: RUSTFLAGS=-Dwarnings cargo check --target x86_64-unknown-linux-gnu --package smoldot --locked --no-default-features --features std --features wasmtime
89-
- run: RUSTFLAGS=-Dwarnings cargo check --target i686-unknown-linux-gnu --package smoldot --locked --no-default-features --features std --features wasmtime
90-
- run: RUSTFLAGS=-Dwarnings cargo check --target x86_64-unknown-linux-gnu --package smoldot --locked --no-default-features --features database-sqlite --features std --features wasmtime
91-
- run: RUSTFLAGS=-Dwarnings cargo check --target i686-unknown-linux-gnu --package smoldot --locked --no-default-features --features database-sqlite --features std --features wasmtime
92-
- run: RUSTFLAGS=-Dwarnings cargo check --target x86_64-unknown-linux-gnu --package smoldot-light --locked --no-default-features
93-
- run: RUSTFLAGS=-Dwarnings cargo check --target i686-unknown-linux-gnu --package smoldot-light --locked --no-default-features
94-
- run: RUSTFLAGS=-Dwarnings cargo check --target x86_64-unknown-linux-gnu --package smoldot-light --locked --no-default-features --features std
95-
- run: RUSTFLAGS=-Dwarnings cargo check --target i686-unknown-linux-gnu --package smoldot-light --locked --no-default-features --features std
96-
- run: RUSTFLAGS=-Dwarnings cargo check --target x86_64-unknown-linux-gnu --package smoldot-light --locked --no-default-features --features wasmtime
97-
- run: RUSTFLAGS=-Dwarnings cargo check --target i686-unknown-linux-gnu --package smoldot-light --locked --no-default-features --features wasmtime
98-
- run: RUSTFLAGS=-Dwarnings cargo check --target x86_64-unknown-linux-gnu --package smoldot-light --locked --no-default-features --features std --features wasmtime
99-
- run: RUSTFLAGS=-Dwarnings cargo check --target i686-unknown-linux-gnu --package smoldot-light --locked --no-default-features --features std --features wasmtime
78+
- run: RUSTFLAGS=-Dwarnings cargo check --target x86_64-unknown-linux-gnu --package parity-smoldot --locked --no-default-features
79+
- run: RUSTFLAGS=-Dwarnings cargo check --target i686-unknown-linux-gnu --package parity-smoldot --locked --no-default-features
80+
- run: RUSTFLAGS=-Dwarnings cargo check --target x86_64-unknown-linux-gnu --package parity-smoldot --locked --no-default-features --features database-sqlite
81+
- run: RUSTFLAGS=-Dwarnings cargo check --target i686-unknown-linux-gnu --package parity-smoldot --locked --no-default-features --features database-sqlite
82+
- run: RUSTFLAGS=-Dwarnings cargo check --target x86_64-unknown-linux-gnu --package parity-smoldot --locked --no-default-features --features std
83+
- run: RUSTFLAGS=-Dwarnings cargo check --target i686-unknown-linux-gnu --package parity-smoldot --locked --no-default-features --features std
84+
- run: RUSTFLAGS=-Dwarnings cargo check --target x86_64-unknown-linux-gnu --package parity-smoldot --locked --no-default-features --features database-sqlite --features std
85+
- run: RUSTFLAGS=-Dwarnings cargo check --target i686-unknown-linux-gnu --package parity-smoldot --locked --no-default-features --features database-sqlite --features std
86+
- run: RUSTFLAGS=-Dwarnings cargo check --target x86_64-unknown-linux-gnu --package parity-smoldot --locked --no-default-features --features database-sqlite --features wasmtime
87+
- run: RUSTFLAGS=-Dwarnings cargo check --target i686-unknown-linux-gnu --package parity-smoldot --locked --no-default-features --features database-sqlite --features wasmtime
88+
- run: RUSTFLAGS=-Dwarnings cargo check --target x86_64-unknown-linux-gnu --package parity-smoldot --locked --no-default-features --features std --features wasmtime
89+
- run: RUSTFLAGS=-Dwarnings cargo check --target i686-unknown-linux-gnu --package parity-smoldot --locked --no-default-features --features std --features wasmtime
90+
- run: RUSTFLAGS=-Dwarnings cargo check --target x86_64-unknown-linux-gnu --package parity-smoldot --locked --no-default-features --features database-sqlite --features std --features wasmtime
91+
- run: RUSTFLAGS=-Dwarnings cargo check --target i686-unknown-linux-gnu --package parity-smoldot --locked --no-default-features --features database-sqlite --features std --features wasmtime
92+
- run: RUSTFLAGS=-Dwarnings cargo check --target x86_64-unknown-linux-gnu --package parity-smoldot-light --locked --no-default-features
93+
- run: RUSTFLAGS=-Dwarnings cargo check --target i686-unknown-linux-gnu --package parity-smoldot-light --locked --no-default-features
94+
- run: RUSTFLAGS=-Dwarnings cargo check --target x86_64-unknown-linux-gnu --package parity-smoldot-light --locked --no-default-features --features std
95+
- run: RUSTFLAGS=-Dwarnings cargo check --target i686-unknown-linux-gnu --package parity-smoldot-light --locked --no-default-features --features std
96+
- run: RUSTFLAGS=-Dwarnings cargo check --target x86_64-unknown-linux-gnu --package parity-smoldot-light --locked --no-default-features --features wasmtime
97+
- run: RUSTFLAGS=-Dwarnings cargo check --target i686-unknown-linux-gnu --package parity-smoldot-light --locked --no-default-features --features wasmtime
98+
- run: RUSTFLAGS=-Dwarnings cargo check --target x86_64-unknown-linux-gnu --package parity-smoldot-light --locked --no-default-features --features std --features wasmtime
99+
- run: RUSTFLAGS=-Dwarnings cargo check --target i686-unknown-linux-gnu --package parity-smoldot-light --locked --no-default-features --features std --features wasmtime
100100

101101
check-no-std:
102102
runs-on: ubuntu-latest
@@ -107,8 +107,8 @@ jobs:
107107
- run: rustup target add thumbv7m-none-eabi
108108
- uses: Swatinem/rust-cache@v2
109109
# We use `thumbv7m-none-eabi` as this target seems to generally work fine and doesn't support `std`. Many targets unfortunately have Rust/LLVM bugs preventing compilation.
110-
- run: RUSTFLAGS=-Dwarnings cargo build --package smoldot --locked --no-default-features --target=thumbv7m-none-eabi
111-
- run: RUSTFLAGS=-Dwarnings cargo build --package smoldot-light --locked --no-default-features --target=thumbv7m-none-eabi
110+
- run: RUSTFLAGS=-Dwarnings cargo build --package parity-smoldot --locked --no-default-features --target=thumbv7m-none-eabi
111+
- run: RUSTFLAGS=-Dwarnings cargo build --package parity-smoldot-light --locked --no-default-features --target=thumbv7m-none-eabi
112112

113113
check-rustdoc-links:
114114
runs-on: ubuntu-latest

.github/workflows/deploy.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -91,7 +91,7 @@ jobs:
9191
- uses: Swatinem/rust-cache@v2
9292
with:
9393
workspaces: ./repo -> target
94-
- run: cargo doc --verbose --all-features --no-deps --package smoldot --package smoldot-light --package smoldot-full-node
94+
- run: cargo doc --verbose --all-features --no-deps --package parity-smoldot --package parity-smoldot-light --package parity-smoldot-full-node
9595
working-directory: ./repo
9696
- run: |
9797
mkdir -p ./doc

Cargo.lock

Lines changed: 128 additions & 128 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

Cargo.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@ members = [
1212
authors = ["Parity Technologies <admin@parity.io>", "Pierre Krieger <pierre.krieger1708@gmail.com>"]
1313
license = "GPL-3.0-or-later WITH Classpath-exception-2.0"
1414
edition = "2024"
15-
repository = "https://github.com/smol-dot/smoldot"
15+
repository = "https://github.com/paritytech/smoldot"
1616
include = ["**/*.rs"] # Only Rust files are included, as anything else might be a test fixture.
1717

1818
[profile.dev]

full-node/Cargo.toml

Lines changed: 7 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
[package]
2-
name = "smoldot-full-node"
3-
version = "0.9.1"
2+
name = "parity-smoldot-full-node"
3+
version = "0.10.0"
44
description = "Substrate/Polkadot full node using smoldot"
55
authors.workspace = true
66
license.workspace = true
@@ -9,6 +9,10 @@ repository.workspace = true
99
include.workspace = true
1010
default-run = "full-node"
1111

12+
[lib]
13+
# The implementation uses a fully-qualified lib name. Keep it different from the crate name.
14+
name = "smoldot_full_node"
15+
1216
[[bin]]
1317
name = "full-node"
1418
path = "bin/main.rs"
@@ -37,6 +41,6 @@ serde_json = { version = "1.0.104", default-features = false, features = ["std"]
3741
siphasher = { version = "1.0.1", default-features = false }
3842
soketto = { version = "0.8.0", features = ["deflate"] }
3943
smol = "2.0.0"
40-
smoldot = { version = "0.21.0", path = "../lib", default-features = false, features = ["database-sqlite", "std", "wasmtime"] }
44+
smoldot = { package = "parity-smoldot", version = "0.22.0", path = "../lib", default-features = false, features = ["database-sqlite", "std", "wasmtime"] }
4145
terminal_size = "0.4.0"
4246
zeroize = { version = "1.7.0", default-features = false, features = ["alloc"] }

full-node/Dockerfile

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ WORKDIR /build
66

77
RUN apt-get update && apt-get install -y musl-tools
88
RUN rustup target add x86_64-unknown-linux-musl
9-
RUN cargo build --target x86_64-unknown-linux-musl --package smoldot-full-node --release --verbose
9+
RUN cargo build --target x86_64-unknown-linux-musl --package parity-smoldot-full-node --release --verbose
1010

1111

1212
FROM alpine:latest

0 commit comments

Comments
 (0)