Hello,
i tried it but I get on npm install errors and the command has to been aborted:
Compiling linked-hash-map v0.5.4
Compiling object v0.24.0
error[E0658]: subslice patterns are unstable
--> /home/pi/.cargo/registry/src/github.com-1ecc6299db9ec823/object-0.24.0/src/read/mod.rs:173:41
|
173 | [0x7f, b'E', b'L', b'F', 1, ..] => FileKind::Elf32,
| ^^
|
= note: for more information, see https://github.com/rust-lang/rust/issues/62254
error[E0658]: subslice patterns are unstable
--> /home/pi/.cargo/registry/src/github.com-1ecc6299db9ec823/object-0.24.0/src/read/mod.rs:175:41
|
175 | [0x7f, b'E', b'L', b'F', 2, ..] => FileKind::Elf64,
| ^^
|
= note: for more information, see https://github.com/rust-lang/rust/issues/62254
error[E0658]: subslice patterns are unstable
--> /home/pi/.cargo/registry/src/github.com-1ecc6299db9ec823/object-0.24.0/src/read/mod.rs:177:38
|
177 | [0xfe, 0xed, 0xfa, 0xce, ..]
| ^^
|
= note: for more information, see https://github.com/rust-lang/rust/issues/62254
error[E0658]: subslice patterns are unstable
--> /home/pi/.cargo/registry/src/github.com-1ecc6299db9ec823/object-0.24.0/src/read/mod.rs:178:40
|
178 | | [0xce, 0xfa, 0xed, 0xfe, ..] => FileKind::MachO32,
| ^^
|
= note: for more information, see https://github.com/rust-lang/rust/issues/62254
error[E0658]: subslice patterns are unstable
--> /home/pi/.cargo/registry/src/github.com-1ecc6299db9ec823/object-0.24.0/src/read/mod.rs:180:40
|
180 | | [0xfe, 0xed, 0xfa, 0xcf, ..]
| ^^
|
= note: for more information, see https://github.com/rust-lang/rust/issues/62254
error[E0658]: subslice patterns are unstable
--> /home/pi/.cargo/registry/src/github.com-1ecc6299db9ec823/object-0.24.0/src/read/mod.rs:181:40
|
181 | | [0xcf, 0xfa, 0xed, 0xfe, ..] => FileKind::MachO64,
| ^^
|
= note: for more information, see https://github.com/rust-lang/rust/issues/62254
error[E0658]: subslice patterns are unstable
--> /home/pi/.cargo/registry/src/github.com-1ecc6299db9ec823/object-0.24.0/src/read/mod.rs:183:38
|
183 | [0xca, 0xfe, 0xba, 0xbe, ..] => FileKind::MachOFat32,
| ^^
|
= note: for more information, see https://github.com/rust-lang/rust/issues/62254
error[E0658]: subslice patterns are unstable
--> /home/pi/.cargo/registry/src/github.com-1ecc6299db9ec823/object-0.24.0/src/read/mod.rs:185:38
|
185 | [0xca, 0xfe, 0xba, 0xbf, ..] => FileKind::MachOFat64,
| ^^
|
= note: for more information, see https://github.com/rust-lang/rust/issues/62254
error[E0658]: subslice patterns are unstable
--> /home/pi/.cargo/registry/src/github.com-1ecc6299db9ec823/object-0.24.0/src/read/mod.rs:189:26
|
189 | [b'M', b'Z', ..] => {
| ^^
|
= note: for more information, see https://github.com/rust-lang/rust/issues/62254
error[E0658]: subslice patterns are unstable
--> /home/pi/.cargo/registry/src/github.com-1ecc6299db9ec823/object-0.24.0/src/read/mod.rs:203:26
|
203 | [0xc4, 0x01, ..]
| ^^
|
= note: for more information, see https://github.com/rust-lang/rust/issues/62254
error[E0658]: subslice patterns are unstable
--> /home/pi/.cargo/registry/src/github.com-1ecc6299db9ec823/object-0.24.0/src/read/mod.rs:205:28
|
205 | | [0x64, 0xaa, ..]
| ^^
|
= note: for more information, see https://github.com/rust-lang/rust/issues/62254
error[E0658]: subslice patterns are unstable
--> /home/pi/.cargo/registry/src/github.com-1ecc6299db9ec823/object-0.24.0/src/read/mod.rs:207:28
|
207 | | [0x4c, 0x01, ..]
| ^^
|
= note: for more information, see https://github.com/rust-lang/rust/issues/62254
error[E0658]: subslice patterns are unstable
--> /home/pi/.cargo/registry/src/github.com-1ecc6299db9ec823/object-0.24.0/src/read/mod.rs:209:28
|
209 | | [0x64, 0x86, ..] => FileKind::Coff,
| ^^
|
= note: for more information, see https://github.com/rust-lang/rust/issues/62254
Compiling fallible-streaming-iterator v0.1.9
Compiling rustc-demangle v0.1.18
Compiling fallible-iterator v0.2.0
Compiling base64 v0.11.0
Compiling weezl v0.1.4
Compiling safemem v0.3.3
Compiling keccak v0.1.0
error: aborting due to 13 previous errors
For more information about this error, try `rustc --explain E0658`.
error: could not compile `object`.
warning: build failed, waiting for other jobs to finish...
error: build failed
cargo failed with code 101
npm ERR! code ELIFECYCLE
npm ERR! errno 1
npm ERR! deltachat-node@1.60.1 build:core:rust: `node scripts/rebuild-core.js`
npm ERR! Exit status 1
npm ERR!
npm ERR! Failed at the deltachat-node@1.60.1 build:core:rust script.
npm ERR! This is probably not a problem with npm. There is likely additional logging output above.
npm WARN Local package.json exists, but node_modules missing, did you mean to install?
npm ERR! A complete log of this run can be found in:
npm ERR! /home/pi/.npm/_logs/2021-10-14T08_21_25_958Z-debug.log
npm ERR! code ELIFECYCLE
npm ERR! errno 1
npm ERR! deltachat-node@1.60.1 build:core: `npm run build:core:rust && npm run build:core:constants`
npm ERR! Exit status 1
npm ERR!
npm ERR! Failed at the deltachat-node@1.60.1 build:core script.
npm ERR! This is probably not a problem with npm. There is likely additional logging output above.
npm WARN Local package.json exists, but node_modules missing, did you mean to install?
npm ERR! A complete log of this run can be found in:
npm ERR! /home/pi/.npm/_logs/2021-10-14T08_21_26_010Z-debug.log
npm ERR! code ELIFECYCLE
npm ERR! errno 1
npm ERR! deltachat-node@1.60.1 install:prebuilds: `node-gyp-build "npm run build:core" "npm run build:bindings:c:postinstall"`
npm ERR! Exit status 1
npm ERR!
npm ERR! Failed at the deltachat-node@1.60.1 install:prebuilds script.
npm ERR! This is probably not a problem with npm. There is likely additional logging output above.
npm WARN Local package.json exists, but node_modules missing, did you mean to install?
npm ERR! A complete log of this run can be found in:
npm ERR! /home/pi/.npm/_logs/2021-10-14T08_21_26_063Z-debug.log
child_process.js:669
throw err;
^
Error: Command failed: npm run install:prebuilds
at checkExecSyncError (child_process.js:629:11)
at execSync (child_process.js:666:13)
at run (/home/pi/temp/deltachat-desktop/node_modules/deltachat-node/scripts/install.js:7:3)
at Object.<anonymous> (/home/pi/temp/deltachat-desktop/node_modules/deltachat-node/scripts/install.js:21:3)
at Module._compile (internal/modules/cjs/loader.js:778:30)
at Object.Module._extensions..js (internal/modules/cjs/loader.js:789:10)
at Module.load (internal/modules/cjs/loader.js:653:32)
at tryModuleLoad (internal/modules/cjs/loader.js:593:12)
at Function.Module._load (internal/modules/cjs/loader.js:585:3)
at Function.Module.runMain (internal/modules/cjs/loader.js:831:12)
By the way:
$ rustc --explain E0658
pi@mcraspi4:~/temp $ rustc --explain E0658
An unstable feature was used.
Erroneous code example:
'```'
#[repr(u128)] // error: use of unstable library feature 'repr128'
enum Foo {
Bar(u64),
}
'```'
If you're using a stable or a beta version of rustc, you won't be able to use
any unstable features. In order to do so, please switch to a nightly version of
rustc (by using rustup).
If you're using a nightly version of rustc, just add the corresponding feature
to be able to use it:
'```'
#![feature(repr128)]
#[repr(u128)] // ok!
enum Foo {
Bar(u64),
}
'```'
The Output contains the markups for script content so I added the ’ manually.