Describe the bug
Ever since 0.3.0-beta.14
is out perseus deploy
consistently fails with two different errors on two different machines, locally and on a VPS. Right now, in the same way as described bellow, it's also impossible to deploy previous version 0.3.0-beta.13
, which worked before the 0.3.0-beta.14
release. The Dockerfile
bellow is standalone and does attempt to deploy the tiny
example of this repo.
To Reproduce
Dockerfile
# get the base image
FROM rust:1.55-slim AS build
# install build dependencies
RUN apt update \
&& apt install -y --no-install-recommends lsb-release apt-transport-https \
build-essential curl
# vars
ENV PERSEUS_VERSION=0.3.0-beta.14 \
WEE_ALLOC_VERSION=0.4
# prepare root project dir
WORKDIR /app
# download the target for wasm
RUN rustup target add wasm32-unknown-unknown
# install wasm-pack
RUN cargo install wasm-pack
# retrieve the src dir
RUN curl https://codeload.github.com/arctic-hen7/perseus/tar.gz/main | tar -xz --strip=2 perseus-main/examples/tiny
# go to src dir
WORKDIR /app/tiny
# install perseus-cli
RUN cargo install perseus-cli --version $PERSEUS_VERSION
# clean app
RUN perseus clean
# specify deps in app config
RUN sed -i s"/perseus = .*/perseus = \"${PERSEUS_VERSION}\"/" ./Cargo.toml \
&& sed -i "/\[dependencies\]/a wee_alloc = \"${WEE_ALLOC_VERSION}\"" ./Cargo.toml \
&& echo ' \n\
[profile.release] \n\
codegen-units = 1 \n\
opt-level = "s" \n\
lto = true ' >> ./Cargo.toml \
&& cat ./Cargo.toml
# modify and prepend lib.rs
RUN sed -i s'/"Hello World!"/"世界您好 !"/' ./src/lib.rs \
&& echo '#[global_allocator] \n\
static ALLOC: wee_alloc::WeeAlloc = wee_alloc::WeeAlloc::INIT; \n\
' | cat - ./src/lib.rs > ./src/lib.rs.tmp \
&& mv ./src/lib.rs.tmp ./src/lib.rs \
&& cat ./src/lib.rs
# prep and eject app
RUN perseus prep && perseus eject
# adjust and append perseus config
RUN sed -i s"/perseus = .*/perseus = \"${PERSEUS_VERSION}\"/" .perseus/Cargo.toml \
&& echo ' \n\n\
[profile.release] \n\
codegen-units = 1 \n\
opt-level = "s" ' >> .perseus/Cargo.toml \
&& cat .perseus/Cargo.toml
# deploy app
RUN perseus deploy
# prepare deployment image
FROM bitnami/minideb:buster
WORKDIR /app
COPY --from=build /app/tiny/pkg /app/
ENV PERSEUS_STANDALONE=true
ENV HOST=0.0.0.0
CMD ["./server"]
Part of docker build output from local machine
...
Step 9/21 : RUN cargo install perseus-cli --version $PERSEUS_VERSION
---> Running in 48b225eaec3e
Downloading crates ...
Downloaded perseus-cli v0.3.0-beta.14
Updating crates.io index
Installing perseus-cli v0.3.0-beta.14
Downloading crates ...
Downloaded strsim v0.10.0
Downloaded textwrap v0.14.2
Downloaded clap v3.0.0-beta.5
Downloaded proc-macro-hack v0.5.19
Downloaded fmterr v0.1.1
Downloaded glob v0.3.0
Downloaded anyhow v1.0.44
Downloaded include_dir_impl v0.6.2
Downloaded clap_derive v3.0.0-beta.5
Downloaded console v0.14.1
Downloaded include_dir v0.6.2
Downloaded number_prefix v0.4.0
Downloaded cargo_toml v0.9.2
Downloaded os_str_bytes v4.2.0
Downloaded indicatif v0.17.0-beta.1
Downloaded fs_extra v1.2.0
Compiling proc-macro2 v1.0.32
Compiling unicode-xid v0.2.2
Compiling syn v1.0.81
Compiling version_check v0.9.3
Compiling libc v0.2.105
Compiling serde v1.0.130
Compiling anyhow v1.0.44
Compiling memchr v2.4.1
Compiling proc-macro-hack v0.5.19
Compiling autocfg v1.0.1
Compiling regex-syntax v0.6.25
Compiling unicode-segmentation v1.8.0
Compiling ryu v1.0.5
Compiling lazy_static v1.4.0
Compiling serde_derive v1.0.130
Compiling unicode-width v0.1.9
Compiling hashbrown v0.11.2
Compiling serde_json v1.0.68
Compiling once_cell v1.8.0
Compiling itoa v0.4.8
Compiling strsim v0.10.0
Compiling termcolor v1.1.2
Compiling number_prefix v0.4.0
Compiling bitflags v1.3.2
Compiling glob v0.3.0
Compiling fs_extra v1.2.0
Compiling fmterr v0.1.1
Compiling proc-macro-error-attr v1.0.4
Compiling proc-macro-error v1.0.4
Compiling unicase v2.6.0
Compiling textwrap v0.14.2
Compiling indexmap v1.7.0
Compiling heck v0.3.3
Compiling regex v1.5.4
Compiling os_str_bytes v4.2.0
Compiling quote v1.0.10
Compiling terminal_size v0.1.17
Compiling atty v0.2.14
Compiling console v0.15.0
Compiling console v0.14.1
Compiling indicatif v0.17.0-beta.1
Compiling toml v0.5.8
Compiling thiserror-impl v1.0.30
Compiling clap_derive v3.0.0-beta.5
Compiling include_dir_impl v0.6.2
Compiling include_dir v0.6.2
Compiling thiserror v1.0.30
Compiling clap v3.0.0-beta.5
Compiling cargo_toml v0.9.2
Compiling perseus-cli v0.3.0-beta.14
Finished release [optimized] target(s) in 1m 04s
Installing /usr/local/cargo/bin/perseus
Installed package `perseus-cli v0.3.0-beta.14` (executable `perseus`)
Removing intermediate container 48b225eaec3e
---> 54bf07daf838
Step 10/21 : RUN perseus clean
---> Running in 276dcb6cc379
Removing intermediate container 276dcb6cc379
---> e63df3b90eaf
Step 11/21 : RUN sed -i s"/perseus = .*/perseus = \"${PERSEUS_VERSION}\"/" ./Cargo.toml && sed -i "/\[dependencies\]/a wee_alloc = \"${WEE_ALLOC_VERSION}\"" ./Cargo.toml && echo ' \n[profile.release] \ncodegen-units = 1 \nopt-level = "s" \nlto = true ' >> ./Cargo.toml && cat ./Cargo.toml
---> Running in ff387002e768
[package]
name = "perseus-example-tiny"
version = "0.3.0-beta.14"
edition = "2018"
# See more keys and their definitions at https://doc.rust-lang.org/cargo/reference/manifest.html
[dependencies]
wee_alloc = "0.4"
perseus = "0.3.0-beta.14"
sycamore = "0.6"
[profile.release]
codegen-units = 1
opt-level = "s"
lto = true
Removing intermediate container ff387002e768
---> b87a86f93ac4
Step 12/21 : RUN sed -i s'/"Hello World!"/"世界您好 !"/' ./src/lib.rs && echo '#[global_allocator] \nstatic ALLOC: wee_alloc::WeeAlloc = wee_alloc::WeeAlloc::INIT; \n' | cat - ./src/lib.rs > ./src/lib.rs.tmp && mv ./src/lib.rs.tmp ./src/lib.rs && cat ./src/lib.rs
---> Running in cd0981669fb5
#[global_allocator]
static ALLOC: wee_alloc::WeeAlloc = wee_alloc::WeeAlloc::INIT;
use perseus::{define_app, ErrorPages, Template};
use sycamore::template;
define_app! {
templates: [
Template::<G>::new("index").template(|_| {
template! {
p { "世界您好 !" }
}
})
],
error_pages: ErrorPages::new(|url, status, err, _| {
template! {
p { (format!("An error with HTTP code {} occurred at '{}': '{}'.", status, url, err)) }
}
})
}
Removing intermediate container cd0981669fb5
---> ad243ddb97cf
Step 13/21 : RUN perseus prep && perseus eject
---> Running in 296f9f98d805
Removing intermediate container 296f9f98d805
---> b1dcbfb61541
Step 14/21 : RUN sed -i s"/perseus = .*/perseus = \"${PERSEUS_VERSION}\"/" .perseus/Cargo.toml && echo ' \n\n[profile.release] \ncodegen-units = 1 \nopt-level = "s" ' >> .perseus/Cargo.toml && cat .perseus/Cargo.toml
---> Running in 368ed86f1eda
# This crate defines the user's app in terms that Wasm can understand, making development significantly simpler.
# IMPORTANT: spacing matters in this file for runtime replacements, do NOT change it!
[package]
name = "perseus-engine"
version = "0.3.0-beta.14"
edition = "2018"
# See more keys and their definitions at https://doc.rust-lang.org/cargo/reference/manifest.html
[dependencies]
# We alias here because the package name will change based on whatever's in the user's manifest
app = { package = "perseus-example-tiny", path = "../" }
perseus = "0.3.0-beta.14"
sycamore = { version = "0.6", features = ["ssr"] }
sycamore-router = "0.6"
web-sys = { version = "0.3", features = ["Event", "Headers", "Request", "RequestInit", "RequestMode", "Response", "ReadableStream", "Window"] }
wasm-bindgen = "0.2"
wasm-bindgen-futures = "0.4"
console_error_panic_hook = "0.1.6"
# This section is needed for Wasm Pack (which we use instead of Trunk for flexibility)
[lib]
crate-type = ["cdylib", "rlib"]
[workspace]
[profile.release]
codegen-units = 1
opt-level = "s"
Removing intermediate container 368ed86f1eda
---> 711943076fd5
Step 15/21 : RUN perseus deploy
---> Running in 37ea51568596
Error: couldn't move `.perseus/pkg/` to `.perseus/dist/pkg/` (run `perseus clean` if this persists)
Caused by:
Invalid cross-device link (os error 18)
The command '/bin/sh -c perseus deploy' returned a non-zero code: 1
Part of docker build output from VPS
...
Step 9/21 : RUN cargo install perseus-cli --version $PERSEUS_VERSION
---> Running in cd545af5bdf3
Downloading crates ...
Downloaded perseus-cli v0.3.0-beta.14
Updating crates.io index
Installing perseus-cli v0.3.0-beta.14
Downloading crates ...
Downloaded cargo_toml v0.9.2
Downloaded include_dir v0.6.2
Downloaded fmterr v0.1.1
Downloaded os_str_bytes v4.2.0
Downloaded strsim v0.10.0
Downloaded proc-macro-hack v0.5.19
Downloaded number_prefix v0.4.0
Downloaded include_dir_impl v0.6.2
Downloaded indicatif v0.17.0-beta.1
Downloaded glob v0.3.0
Downloaded fs_extra v1.2.0
Downloaded console v0.14.1
Downloaded anyhow v1.0.44
Downloaded clap_derive v3.0.0-beta.5
Downloaded clap v3.0.0-beta.5
Downloaded textwrap v0.14.2
Compiling proc-macro2 v1.0.32
Compiling unicode-xid v0.2.2
Compiling syn v1.0.81
Compiling version_check v0.9.3
Compiling libc v0.2.105
Compiling serde v1.0.130
Compiling anyhow v1.0.44
Compiling proc-macro-hack v0.5.19
Compiling autocfg v1.0.1
Compiling memchr v2.4.1
Compiling unicode-segmentation v1.8.0
Compiling ryu v1.0.5
Compiling unicode-width v0.1.9
Compiling lazy_static v1.4.0
Compiling regex-syntax v0.6.25
Compiling serde_derive v1.0.130
Compiling once_cell v1.8.0
Compiling serde_json v1.0.68
Compiling hashbrown v0.11.2
Compiling strsim v0.10.0
Compiling itoa v0.4.8
Compiling glob v0.3.0
Compiling number_prefix v0.4.0
Compiling bitflags v1.3.2
Compiling termcolor v1.1.2
Compiling fmterr v0.1.1
Compiling fs_extra v1.2.0
Compiling proc-macro-error-attr v1.0.4
Compiling proc-macro-error v1.0.4
Compiling unicase v2.6.0
Compiling indexmap v1.7.0
Compiling heck v0.3.3
Compiling textwrap v0.14.2
Compiling regex v1.5.4
Compiling quote v1.0.10
Compiling terminal_size v0.1.17
Compiling atty v0.2.14
Compiling toml v0.5.8
Compiling os_str_bytes v4.2.0
Compiling console v0.15.0
Compiling console v0.14.1
Compiling indicatif v0.17.0-beta.1
Compiling thiserror-impl v1.0.30
Compiling include_dir_impl v0.6.2
Compiling clap_derive v3.0.0-beta.5
Compiling thiserror v1.0.30
Compiling include_dir v0.6.2
Compiling clap v3.0.0-beta.5
Compiling cargo_toml v0.9.2
Compiling perseus-cli v0.3.0-beta.14
Finished release [optimized] target(s) in 2m 43s
Installing /usr/local/cargo/bin/perseus
Installed package `perseus-cli v0.3.0-beta.14` (executable `perseus`)
Removing intermediate container cd545af5bdf3
---> 25f00239fd3c
Step 10/21 : RUN perseus clean
---> Running in 9d5e3832deba
Removing intermediate container 9d5e3832deba
---> 27b455fc37f8
Step 11/21 : RUN sed -i s"/perseus = .*/perseus = \"${PERSEUS_VERSION}\"/" ./Cargo.toml && sed -i "/\[dependencies\]/a wee_alloc = \"${WEE_ALLOC_VERSION}\"" ./Cargo.toml && echo ' \n[profile.release] \ncodegen-units = 1 \nopt-level = "s" \nlto = true ' >> ./Cargo.toml && cat ./Cargo.toml
---> Running in 81363b9ea235
[package]
name = "perseus-example-tiny"
version = "0.3.0-beta.14"
edition = "2018"
# See more keys and their definitions at https://doc.rust-lang.org/cargo/reference/manifest.html
[dependencies]
wee_alloc = "0.4"
perseus = "0.3.0-beta.14"
sycamore = "0.6"
[profile.release]
codegen-units = 1
opt-level = "s"
lto = true
Removing intermediate container 81363b9ea235
---> aa2e155c1003
Step 12/21 : RUN sed -i s'/"Hello World!"/"世界您好 !"/' ./src/lib.rs && echo '#[global_allocator] \nstatic ALLOC: wee_alloc::WeeAlloc = wee_alloc::WeeAlloc::INIT; \n' | cat - ./src/lib.rs > ./src/lib.rs.tmp && mv ./src/lib.rs.tmp ./src/lib.rs && cat ./src/lib.rs
---> Running in 593b24317e72
#[global_allocator]
static ALLOC: wee_alloc::WeeAlloc = wee_alloc::WeeAlloc::INIT;
use perseus::{define_app, ErrorPages, Template};
use sycamore::template;
define_app! {
templates: [
Template::<G>::new("index").template(|_| {
template! {
p { "世界您好 !" }
}
})
],
error_pages: ErrorPages::new(|url, status, err, _| {
template! {
p { (format!("An error with HTTP code {} occurred at '{}': '{}'.", status, url, err)) }
}
})
}
Removing intermediate container 593b24317e72
---> cc3e7f0c4a12
Step 13/21 : RUN perseus prep && perseus eject
---> Running in 44ca42cbfb56
Removing intermediate container 44ca42cbfb56
---> 6956cf16c8b0
Step 14/21 : RUN sed -i s"/perseus = .*/perseus = \"${PERSEUS_VERSION}\"/" .perseus/Cargo.toml && echo ' \n\n[profile.release] \ncodegen-units = 1 \nopt-level = "s" ' >> .perseus/Cargo.toml && cat .perseus/Cargo.toml
---> Running in 36fce3a82248
# This crate defines the user's app in terms that Wasm can understand, making development significantly simpler.
# IMPORTANT: spacing matters in this file for runtime replacements, do NOT change it!
[package]
name = "perseus-engine"
version = "0.3.0-beta.14"
edition = "2018"
# See more keys and their definitions at https://doc.rust-lang.org/cargo/reference/manifest.html
[dependencies]
# We alias here because the package name will change based on whatever's in the user's manifest
app = { package = "perseus-example-tiny", path = "../" }
perseus = "0.3.0-beta.14"
sycamore = { version = "0.6", features = ["ssr"] }
sycamore-router = "0.6"
web-sys = { version = "0.3", features = ["Event", "Headers", "Request", "RequestInit", "RequestMode", "Response", "ReadableStream", "Window"] }
wasm-bindgen = "0.2"
wasm-bindgen-futures = "0.4"
console_error_panic_hook = "0.1.6"
# This section is needed for Wasm Pack (which we use instead of Trunk for flexibility)
[lib]
crate-type = ["cdylib", "rlib"]
[workspace]
[profile.release]
codegen-units = 1
opt-level = "s"
Removing intermediate container 36fce3a82248
---> ae1fa886efa7
Step 15/21 : RUN perseus deploy
---> Running in 89e40bbf8aac
Updating crates.io index
Blocking waiting for file lock on package cache
Blocking waiting for file lock on package cache
Downloading crates ...
Downloaded actix-connect v2.0.0
Downloaded rustc_version v0.3.3
Downloaded serde_urlencoded v0.7.0
Downloaded time-macros-impl v0.1.2
Downloaded tracing-futures v0.2.5
Downloaded const_fn v0.4.8
Downloaded opaque-debug v0.3.0
Downloaded version_check v0.1.5
Downloaded ucd-trie v0.1.3
Downloaded trust-dns-proto v0.19.7
Downloaded pin-project-internal v1.0.8
Downloaded pin-project-lite v0.1.12
Downloaded rand v0.7.3
Downloaded brotli-sys v0.3.2
Downloaded actix-testing v1.0.1
Downloaded actix-service v1.0.6
Downloaded actix-router v0.2.7
Downloaded bytestring v1.0.0
Downloaded actix-web v3.3.2
Downloaded digest v0.9.0
Downloaded v_escape v0.15.0
Downloaded pin-project v0.4.28
Downloaded semver v0.11.0
Downloaded time-macros v0.1.1
Downloaded time v0.2.27
Downloaded v_htmlescape v0.12.0
Downloaded trust-dns-resolver v0.19.7
Downloaded pin-project-internal v0.4.28
Downloaded tokio-util v0.3.1
Downloaded tokio v0.2.25
Downloaded standback v0.2.17
Downloaded perseus-actix-web v0.3.0-beta.14
Downloaded lru-cache v0.1.2
Downloaded generic-array v0.14.4
Downloaded actix-rt v1.1.1
Downloaded pest v2.1.3
Downloaded match_cfg v0.1.0
Downloaded language-tags v0.2.2
Downloaded block-buffer v0.9.0
Downloaded convert_case v0.4.0
Downloaded actix-server v1.0.4
Downloaded rand_core v0.5.1
Downloaded semver-parser v0.10.2
Downloaded brotli2 v0.3.2
Downloaded derive_more v0.99.16
Downloaded h2 v0.2.7
Downloaded bytes v0.5.6
Downloaded awc v2.0.3
Downloaded actix-files v0.5.0
Downloaded ppv-lite86 v0.2.15
Downloaded pin-project v1.0.8
Downloaded nom v4.2.3
Downloaded tracing-core v0.1.21
Downloaded enum-as-inner v0.3.3
Downloaded linked-hash-map v0.5.4
Downloaded getrandom v0.1.16
Downloaded cookie v0.14.4
Downloaded base64 v0.13.0
Downloaded actix-utils v2.0.0
Downloaded typenum v1.14.0
Downloaded tracing v0.1.29
Downloaded buf-min v0.4.0
Downloaded v_escape_derive v0.8.5
Downloaded rand_chacha v0.2.2
Downloaded mio-uds v0.6.8
Downloaded hostname v0.3.1
Downloaded fxhash v0.2.1
Downloaded cpufeatures v0.2.1
Downloaded copyless v0.1.5
Downloaded actix-web-codegen v0.4.0
Downloaded actix-tls v2.0.0
Downloaded actix-threadpool v0.3.3
Downloaded actix-macros v0.1.3
Downloaded threadpool v1.8.1
Downloaded signal-hook-registry v1.4.0
Downloaded sha-1 v0.9.8
Downloaded resolv-conf v0.7.0
Downloaded actix-codec v0.3.0
Downloaded actix-http v2.2.1
Downloaded socket2 v0.3.19
Blocking waiting for file lock on package cache
Compiling proc-macro2 v1.0.32
Compiling unicode-xid v0.2.2
Compiling syn v1.0.81
Compiling libc v0.2.105
Compiling cfg-if v1.0.0
Compiling version_check v0.9.3
Compiling autocfg v1.0.1
Compiling log v0.4.14
Compiling memchr v2.4.1
Compiling proc-macro-hack v0.5.19
Compiling futures-core v0.3.17
Compiling slab v0.4.5
Compiling serde_derive v1.0.130
Compiling futures-sink v0.3.17
Compiling serde v1.0.130
Compiling ryu v1.0.5
Compiling futures-channel v0.3.17
Compiling pin-project-lite v0.2.7
Compiling cfg-if v0.1.10
Compiling futures-task v0.3.17
Compiling proc-macro-nested v0.1.7
Compiling itoa v0.4.8
Compiling smallvec v1.7.0
Compiling pin-utils v0.1.0
Compiling futures-io v0.3.17
Compiling lazy_static v1.4.0
Compiling serde_json v1.0.68
Compiling bytes v0.5.6
Compiling wasm-bindgen-shared v0.2.78
Compiling pin-project-lite v0.1.12
Compiling bumpalo v3.8.0
Compiling parking_lot_core v0.8.5
Compiling pin-project-internal v0.4.28
Compiling scopeguard v1.1.0
Compiling getrandom v0.1.16
Compiling convert_case v0.4.0
Compiling bytes v1.1.0
Compiling static_assertions v1.1.0
Compiling wasm-bindgen v0.2.78
Compiling hashbrown v0.11.2
Compiling async-trait v0.1.51
Compiling matches v0.1.9
Compiling fnv v1.0.7
Compiling percent-encoding v2.1.0
Compiling tinyvec_macros v0.1.0
Compiling typenum v1.14.0
Compiling bitflags v1.3.2
Compiling copyless v0.1.5
Compiling either v1.6.1
Compiling ppv-lite86 v0.2.15
Compiling unicode-bidi v0.3.7
Compiling unicode-segmentation v1.8.0
Compiling const_fn v0.4.8
Compiling cc v1.0.71
Compiling match_cfg v0.1.0
Compiling ident_case v1.0.1
Compiling strsim v0.10.0
Compiling quick-error v1.2.3
Compiling once_cell v1.8.0
Compiling version_check v0.1.5
Compiling linked-hash-map v0.5.4
Compiling crc32fast v1.2.1
Compiling minimal-lexical v0.1.4
Compiling encoding_rs v0.8.29
Compiling utf8-width v0.1.5
Compiling regex-syntax v0.6.25
Compiling adler v1.0.2
Compiling httparse v1.5.1
Compiling byteorder v1.4.3
Compiling mime v0.3.16
Compiling opaque-debug v0.3.0
Compiling cpufeatures v0.2.1
Compiling v_escape v0.15.0
Compiling language-tags v0.2.2
Compiling base64 v0.13.0
Compiling wee_alloc v0.4.5
Compiling fmterr v0.1.1
Compiling urlencoding v2.1.0
Compiling v_htmlescape v0.12.0
Compiling memory_units v0.4.0
Compiling instant v0.1.12
Compiling standback v0.2.17
error: could not compile `regex-syntax`
Caused by:
process didn't exit successfully: `rustc --crate-name regex_syntax --edition=2018 /usr/local/cargo/registry/src/github.com-1ecc6299db9ec823/regex-syntax-0.6.25/src/lib.rs --error-format=json --json=diagnostic-rendered-ansi,artifacts --crate-type lib --emit=dep-info,metadata,link -C opt-level=3 -C embed-bitcode=no --cfg 'feature="default"' --cfg 'feature="unicode"' --cfg 'feature="unicode-age"' --cfg 'feature="unicode-bool"' --cfg 'feature="unicode-case"' --cfg 'feature="unicode-gencat"' --cfg 'feature="unicode-perl"' --cfg 'feature="unicode-script"' --cfg 'feature="unicode-segment"' -C metadata=09d5543a3c98c8ca -C extra-filename=-09d5543a3c98c8ca --out-dir /app/tiny/.perseus/server/target/release/deps -L dependency=/app/tiny/.perseus/server/target/release/deps --cap-lints allow` (signal: 9, SIGKILL: kill)
warning: build failed, waiting for other jobs to finish...
error: build failed
[INFO]: Checking for the Wasm target...
[INFO]: Compiling to Wasm...
Compiling proc-macro2 v1.0.32
Compiling unicode-xid v0.2.2
Compiling syn v1.0.81
Compiling autocfg v1.0.1
Compiling serde_derive v1.0.130
Compiling serde v1.0.130
Compiling ryu v1.0.5
Compiling log v0.4.14
Compiling wasm-bindgen-shared v0.2.78
Compiling serde_json v1.0.68
Compiling cfg-if v1.0.0
Compiling bumpalo v3.8.0
Compiling lazy_static v1.4.0
Compiling version_check v0.9.3
Compiling itoa v0.4.8
Compiling memchr v2.4.1
Compiling wasm-bindgen v0.2.78
Compiling static_assertions v1.1.0
Compiling futures-core v0.3.17
Compiling proc-macro-hack v0.5.19
Compiling proc-macro-nested v0.1.7
Compiling futures-task v0.3.17
Compiling futures-channel v0.3.17
Compiling libc v0.2.105
Compiling futures-sink v0.3.17
Compiling once_cell v1.8.0
Compiling ident_case v1.0.1
Compiling fnv v1.0.7
Compiling hashbrown v0.11.2
Compiling strsim v0.10.0
Compiling pin-utils v0.1.0
Compiling slab v0.4.5
Compiling futures-io v0.3.17
Compiling pin-project-lite v0.2.7
Compiling smallvec v1.7.0
Compiling minimal-lexical v0.1.4
Compiling utf8-width v0.1.5
Compiling async-trait v0.1.51
Compiling bytes v1.1.0
Compiling wee_alloc v0.4.5
Compiling fmterr v0.1.1
Compiling cfg-if v0.1.10
Compiling urlencoding v2.1.0
Compiling memory_units v0.4.0
Compiling indexmap v1.7.0
Compiling futures-macro v0.3.17
Compiling num-traits v0.2.14
Compiling futures-util v0.3.17
Compiling num-integer v0.1.44
Compiling ahash v0.7.6
Compiling nom v7.0.0
Compiling lexical-util v0.8.1
Compiling html-escape v0.2.9
Compiling http v0.2.5
Compiling lexical-write-integer v0.8.0
Compiling lexical-parse-integer v0.8.0
Compiling quote v1.0.10
Compiling time v0.1.43
Compiling lexical-write-float v0.8.2
Compiling lexical-parse-float v0.8.2
Compiling lexical-core v0.8.2
Compiling chrono v0.4.19
Compiling lexical v6.0.1
Compiling wasm-bindgen-backend v0.2.78
Compiling darling_core v0.13.0
error: could not compile `syn`
Caused by:
process didn't exit successfully: `rustc --crate-name syn --edition=2018 /usr/local/cargo/registry/src/github.com-1ecc6299db9ec823/syn-1.0.81/src/lib.rs --error-format=json --json=diagnostic-rendered-ansi,artifacts --crate-type lib --emit=dep-info,metadata,link -C embed-bitcode=no -C debug-assertions=off --cfg 'feature="clone-impls"' --cfg 'feature="default"' --cfg 'feature="derive"' --cfg 'feature="extra-traits"' --cfg 'feature="full"' --cfg 'feature="parsing"' --cfg 'feature="printing"' --cfg 'feature="proc-macro"' --cfg 'feature="quote"' --cfg 'feature="visit"' --cfg 'feature="visit-mut"' -C metadata=9e13baa20de7a851 -C extra-filename=-9e13baa20de7a851 --out-dir /app/tiny/.perseus/target/release/deps -L dependency=/app/tiny/.perseus/target/release/deps --extern proc_macro2=/app/tiny/.perseus/target/release/deps/libproc_macro2-cab6106af7d326c8.rmeta --extern quote=/app/tiny/.perseus/target/release/deps/libquote-06c3e2dc93d8e69e.rmeta --extern unicode_xid=/app/tiny/.perseus/target/release/deps/libunicode_xid-0770809ab462d12c.rmeta --cap-lints allow --cfg syn_no_negative_literal_parse --cfg syn_disable_nightly_tests` (signal: 9, SIGKILL: kill)
warning: build failed, waiting for other jobs to finish...
error: build failed
Error: Compiling your crate to WebAssembly failed
Caused by: failed to execute `cargo build`: exited with exit status: 101
full command: "cargo" "build" "--lib" "--release" "--target" "wasm32-unknown-unknown"
ERROR: Service 'perseus' failed to build : The command '/bin/sh -c perseus deploy' returned a non-zero code: 1
Expected behavior
perseus deploy
to perform successfully at least for the version 0.3.0-beta.14
.
Screenshots
None.
Environment (please complete the following information):
- Perseus Version: 0.3.0-beta.14
- Sycamore Version: 0.6.0
- OS: both docker hosts run debian 10
- Browser: Not relevant
- Browser Version: Not relevant
Additional context
The Dockerfile
above isn't using the perseus-size-opt
plugin, but instead adds wee_alloc
optimizations manually.