Bug 258368 - security/vaultwarden: drop or limit RUSTC_BOOTSTRAP
Summary: security/vaultwarden: drop or limit RUSTC_BOOTSTRAP
Status: Closed FIXED
Alias: None
Product: Ports & Packages
Classification: Unclassified
Component: Individual Port(s) (show other bugs)
Version: Latest
Hardware: Any Any
: --- Affects Only Me
Assignee: Michael Reifenberger
URL:
Keywords: patch
Depends on:
Blocks:
 
Reported: 2021-09-08 15:37 UTC by Jan Beich
Modified: 2023-09-02 13:39 UTC (History)
2 users (show)

See Also:
bugzilla: maintainer-feedback? (mr)


Attachments
v0 (493 bytes, patch)
2021-09-08 15:37 UTC, Jan Beich
no flags Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description Jan Beich freebsd_committer freebsd_triage 2021-09-08 15:37:34 UTC
Created attachment 227765 [details]
v0

After ports 6bebfaa8a06c RUSTC_BOOTSTRAP=1 can be limited to RUSTC_BOOTSTRAP=<crate>,<crate>,... See https://github.com/rust-lang/rust/pull/77802. However, this port appears to build fine without any RUSTC_BOOTSTRAP. Is it still necessary e.g., for some runtime features?

Disclaimer: I don't use this port.
Comment 1 Michael Reifenberger freebsd_committer freebsd_triage 2021-10-19 19:41:37 UTC
After commenting out I get a compile error:

...
   Compiling pest_generator v2.1.3
     Running `CARGO=/usr/local/bin/cargo CARGO_CRATE_NAME=pest_generator CARGO_MANIFEST_DIR=/usr/ports/security/vaultwarden/work/vaultwarden-1.22.2/cargo-crates/pest_generator-2.1.3 CARGO_PKG_AUTHORS='Dragoș Tiselice <dragostiselice@gmail.com>' CARGO_PKG_DESCRIPTION='pest code generator' CARGO_PKG_HOMEPAGE='https://pest-parser.github.io/' CARGO_PKG_LICENSE=MIT/Apache-2.0 CARGO_PKG_LICENSE_FILE='' CARGO_PKG_NAME=pest_generator CARGO_PKG_REPOSITORY='https://github.com/pest-parser/pest' CARGO_PKG_VERSION=2.1.3 CARGO_PKG_VERSION_MAJOR=2 CARGO_PKG_VERSION_MINOR=1 CARGO_PKG_VERSION_PATCH=3 CARGO_PKG_VERSION_PRE='' LD_LIBRARY_PATH='/usr/ports/security/vaultwarden/work/target/release/deps:/usr/local/lib' /usr/local/bin/rustc --crate-name pest_generator /usr/ports/security/vaultwarden/work/vaultwarden-1.22.2/cargo-crates/pest_generator-2.1.3/src/lib.rs --error-format=json --json=diagnostic-rendered-ansi --crate-type lib --emit=dep-info,metadata,link -C embed-bitcode=no -C debug-assertions=off -C metadata=345ceb696d6fc581 -C extra-filename=-345ceb696d6fc581 --out-dir /usr/ports/security/vaultwarden/work/target/release/deps -C linker=cc -L dependency=/usr/ports/security/vaultwarden/work/target/release/deps --extern pest=/usr/ports/security/vaultwarden/work/target/release/deps/libpest-c40c6cb38a861fb2.rmeta --extern pest_meta=/usr/ports/security/vaultwarden/work/target/release/deps/libpest_meta-e99578d43d8fc3cc.rmeta --extern proc_macro2=/usr/ports/security/vaultwarden/work/target/release/deps/libproc_macro2-573486035c7ed182.rmeta --extern quote=/usr/ports/security/vaultwarden/work/target/release/deps/libquote-6cdb3574e6dccc1d.rmeta --extern syn=/usr/ports/security/vaultwarden/work/target/release/deps/libsyn-2f16189befe952a7.rmeta --cap-lints warn`
error[E0554]: `#![feature]` may not be used on the stable release channel
 --> /usr/ports/security/vaultwarden/work/Devise-e58b3ac9afc3b6ff10a8aaf02a3e768a8f530089/core/src/lib.rs:1:1
  |
1 | #![feature(proc_macro_diagnostic, proc_macro_span)]
  | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^

error[E0554]: `#![feature]` may not be used on the stable release channel
 --> /usr/ports/security/vaultwarden/work/Devise-e58b3ac9afc3b6ff10a8aaf02a3e768a8f530089/core/src/lib.rs:2:1
  |
2 | #![feature(crate_visibility_modifier)]
  | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^

     Running `CARGO=/usr/local/bin/cargo CARGO_CRATE_NAME=serde_derive CARGO_MANIFEST_DIR=/usr/ports/security/vaultwarden/work/vaultwarden-1.22.2/cargo-crates/serde_derive-1.0.126 CARGO_PKG_AUTHORS='Erick Tryzelaar <erick.tryzelaar@gmail.com>:David Tolnay <dtolnay@gmail.com>' CARGO_PKG_DESCRIPTION='Macros 1.1 implementation of #[derive(Serialize, Deserialize)]' CARGO_PKG_HOMEPAGE='https://serde.rs' CARGO_PKG_LICENSE='MIT OR Apache-2.0' CARGO_PKG_LICENSE_FILE='' CARGO_PKG_NAME=serde_derive CARGO_PKG_REPOSITORY='https://github.com/serde-rs/serde' CARGO_PKG_VERSION=1.0.126 CARGO_PKG_VERSION_MAJOR=1 CARGO_PKG_VERSION_MINOR=0 CARGO_PKG_VERSION_PATCH=126 CARGO_PKG_VERSION_PRE='' LD_LIBRARY_PATH='/usr/ports/security/vaultwarden/work/target/release/deps:/usr/local/lib' OUT_DIR=/usr/ports/security/vaultwarden/work/target/release/build/serde_derive-bc2f49df6e971a78/out /usr/local/bin/rustc --crate-name serde_derive /usr/ports/security/vaultwarden/work/vaultwarden-1.22.2/cargo-crates/serde_derive-1.0.126/src/lib.rs --error-format=json --json=diagnostic-rendered-ansi --crate-type proc-macro --emit=dep-info,link -C prefer-dynamic -C embed-bitcode=no -C debug-assertions=off --cfg 'feature="default"' -C metadata=fea24bf77d830713 -C extra-filename=-fea24bf77d830713 --out-dir /usr/ports/security/vaultwarden/work/target/release/deps -C linker=cc -L dependency=/usr/ports/security/vaultwarden/work/target/release/deps --extern proc_macro2=/usr/ports/security/vaultwarden/work/target/release/deps/libproc_macro2-573486035c7ed182.rlib --extern quote=/usr/ports/security/vaultwarden/work/target/release/deps/libquote-6cdb3574e6dccc1d.rlib --extern syn=/usr/ports/security/vaultwarden/work/target/release/deps/libsyn-2f16189befe952a7.rlib --extern proc_macro --cap-lints warn --cfg underscore_consts`
error[E0554]: `#![feature]` may not be used on the stable release channel
 --> /usr/ports/security/vaultwarden/work/Devise-e58b3ac9afc3b6ff10a8aaf02a3e768a8f530089/core/src/lib.rs:3:1
  |
3 | #![feature(concat_idents)]
  | ^^^^^^^^^^^^^^^^^^^^^^^^^^

warning: trait objects without an explicit `dyn` are deprecated
  --> /usr/ports/security/vaultwarden/work/Devise-e58b3ac9afc3b6ff10a8aaf02a3e768a8f530089/core/src/generator.rs:71:31
   |
71 |     crate enum_validator: Box<Fn(&DeriveGenerator, Enum) -> Result<()>>,
   |                               ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ help: use `dyn`: `dyn Fn(&DeriveGenerator, Enum) -> Result<()>`
   |
   = note: `#[warn(bare_trait_objects)]` on by default
   = warning: this is accepted in the current edition (Rust 2015) but is a hard error in Rust 2021!
   = note: for more information, see issue #80165 <https://github.com/rust-lang/rust/issues/80165>

warning: trait objects without an explicit `dyn` are deprecated
  --> /usr/ports/security/vaultwarden/work/Devise-e58b3ac9afc3b6ff10a8aaf02a3e768a8f530089/core/src/generator.rs:72:33
   |
72 |     crate struct_validator: Box<Fn(&DeriveGenerator, Struct) -> Result<()>>,
   |                                 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ help: use `dyn`: `dyn Fn(&DeriveGenerator, Struct) -> Result<()>`
   |
   = warning: this is accepted in the current edition (Rust 2015) but is a hard error in Rust 2021!
   = note: for more information, see issue #80165 <https://github.com/rust-lang/rust/issues/80165>

warning: trait objects without an explicit `dyn` are deprecated
  --> /usr/ports/security/vaultwarden/work/Devise-e58b3ac9afc3b6ff10a8aaf02a3e768a8f530089/core/src/generator.rs:73:35
   |
73 |     crate generics_validator: Box<Fn(&DeriveGenerator, &::syn::Generics) -> Result<()>>,
   |                                   ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ help: use `dyn`: `dyn Fn(&DeriveGenerator, &::syn::Generics) -> Result<()>`
   |
   = warning: this is accepted in the current edition (Rust 2015) but is a hard error in Rust 2021!
   = note: for more information, see issue #80165 <https://github.com/rust-lang/rust/issues/80165>

warning: trait objects without an explicit `dyn` are deprecated
  --> /usr/ports/security/vaultwarden/work/Devise-e58b3ac9afc3b6ff10a8aaf02a3e768a8f530089/core/src/generator.rs:74:33
   |
74 |     crate fields_validator: Box<Fn(&DeriveGenerator, Fields) -> Result<()>>,
   |                                 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ help: use `dyn`: `dyn Fn(&DeriveGenerator, Fields) -> Result<()>`
   |
   = warning: this is accepted in the current edition (Rust 2015) but is a hard error in Rust 2021!
   = note: for more information, see issue #80165 <https://github.com/rust-lang/rust/issues/80165>

warning: trait objects without an explicit `dyn` are deprecated
  --> /usr/ports/security/vaultwarden/work/Devise-e58b3ac9afc3b6ff10a8aaf02a3e768a8f530089/core/src/generator.rs:75:43
   |
75 |     crate type_generic_mapper: Option<Box<Fn(&DeriveGenerator, &syn::Ident, &syn::TypeParam) -> TokenStream2>>,
   |                                           ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ help: use `dyn`: `dyn Fn(&DeriveGenerator, &syn::Ident, &syn::TypeParam) -> TokenStream2`
   |
   = warning: this is accepted in the current edition (Rust 2015) but is a hard error in Rust 2021!
   = note: for more information, see issue #80165 <https://github.com/rust-lang/rust/issues/80165>

warning: trait objects without an explicit `dyn` are deprecated
  --> /usr/ports/security/vaultwarden/work/Devise-e58b3ac9afc3b6ff10a8aaf02a3e768a8f530089/core/src/generator.rs:77:30
   |
77 |     crate functions: Vec<Box<Fn(&DeriveGenerator, TokenStream2) -> TokenStream2>>,
   |                              ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ help: use `dyn`: `dyn Fn(&DeriveGenerator, TokenStream2) -> TokenStream2`
   |
   = warning: this is accepted in the current edition (Rust 2015) but is a hard error in Rust 2021!
   = note: for more information, see issue #80165 <https://github.com/rust-lang/rust/issues/80165>

warning: trait objects without an explicit `dyn` are deprecated
  --> /usr/ports/security/vaultwarden/work/Devise-e58b3ac9afc3b6ff10a8aaf02a3e768a8f530089/core/src/generator.rs:78:33
   |
78 |     crate enum_mappers: Vec<Box<Fn(&DeriveGenerator, Enum) -> MapResult>>,
   |                                 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ help: use `dyn`: `dyn Fn(&DeriveGenerator, Enum) -> MapResult`
   |
   = warning: this is accepted in the current edition (Rust 2015) but is a hard error in Rust 2021!
   = note: for more information, see issue #80165 <https://github.com/rust-lang/rust/issues/80165>

warning: trait objects without an explicit `dyn` are deprecated
  --> /usr/ports/security/vaultwarden/work/Devise-e58b3ac9afc3b6ff10a8aaf02a3e768a8f530089/core/src/generator.rs:79:35
   |
79 |     crate struct_mappers: Vec<Box<Fn(&DeriveGenerator, Struct) -> MapResult>>,
   |                                   ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ help: use `dyn`: `dyn Fn(&DeriveGenerator, Struct) -> MapResult`
   |
   = warning: this is accepted in the current edition (Rust 2015) but is a hard error in Rust 2021!
   = note: for more information, see issue #80165 <https://github.com/rust-lang/rust/issues/80165>

warning: trait objects without an explicit `dyn` are deprecated
  --> /usr/ports/security/vaultwarden/work/Devise-e58b3ac9afc3b6ff10a8aaf02a3e768a8f530089/core/src/generator.rs:80:36
   |
80 |     crate variant_mappers: Vec<Box<Fn(&DeriveGenerator, Variant) -> MapResult>>,
   |                                    ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ help: use `dyn`: `dyn Fn(&DeriveGenerator, Variant) -> MapResult`
   |
   = warning: this is accepted in the current edition (Rust 2015) but is a hard error in Rust 2021!
   = note: for more information, see issue #80165 <https://github.com/rust-lang/rust/issues/80165>

warning: trait objects without an explicit `dyn` are deprecated
  --> /usr/ports/security/vaultwarden/work/Devise-e58b3ac9afc3b6ff10a8aaf02a3e768a8f530089/core/src/generator.rs:81:35
   |
81 |     crate fields_mappers: Vec<Box<Fn(&DeriveGenerator, Fields) -> MapResult>>,
   |                                   ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ help: use `dyn`: `dyn Fn(&DeriveGenerator, Fields) -> MapResult`
   |
   = warning: this is accepted in the current edition (Rust 2015) but is a hard error in Rust 2021!
   = note: for more information, see issue #80165 <https://github.com/rust-lang/rust/issues/80165>

warning: trait objects without an explicit `dyn` are deprecated
  --> /usr/ports/security/vaultwarden/work/Devise-e58b3ac9afc3b6ff10a8aaf02a3e768a8f530089/core/src/generator.rs:82:34
   |
82 |     crate field_mappers: Vec<Box<Fn(&DeriveGenerator, Field) -> MapResult>>,
   |                                  ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ help: use `dyn`: `dyn Fn(&DeriveGenerator, Field) -> MapResult`
   |
   = warning: this is accepted in the current edition (Rust 2015) but is a hard error in Rust 2021!
   = note: for more information, see issue #80165 <https://github.com/rust-lang/rust/issues/80165>

warning: trait objects without an explicit `dyn` are deprecated
   --> /usr/ports/security/vaultwarden/work/Devise-e58b3ac9afc3b6ff10a8aaf02a3e768a8f530089/core/src/generator.rs:55:42
    |
55  |               pub fn $get_f(&self) -> &Box<Fn(&DeriveGenerator, $type) -> MapResult> {
    |                                            ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ help: use `dyn`: `dyn Fn(&DeriveGenerator, $type) -> MapResult`
...
193 | /     mappers! {
194 | |         (map_struct, try_map_struct, struct_mapper): Struct, struct_mappers,
195 | |         (map_enum, try_map_enum, enum_mapper): Enum, enum_mappers,
196 | |         (map_variant, try_map_variant, variant_mapper): Variant, variant_mappers,
197 | |         (map_fields, try_map_fields, fields_mapper): Fields, fields_mappers,
198 | |         (map_field, try_map_field, field_mapper): Field, field_mappers
199 | |     }
    | |_____- in this macro invocation
    |
    = warning: this is accepted in the current edition (Rust 2015) but is a hard error in Rust 2021!
    = note: for more information, see issue #80165 <https://github.com/rust-lang/rust/issues/80165>
    = note: this warning originates in the macro `mappers` (in Nightly builds, run with -Z macro-backtrace for more info)

[libsqlite3-sys 0.22.2] exit status: 0
[libsqlite3-sys 0.22.2] AR_x86_64-unknown-freebsd = None
[libsqlite3-sys 0.22.2] AR_x86_64_unknown_freebsd = None
[libsqlite3-sys 0.22.2] HOST_AR = None
[libsqlite3-sys 0.22.2] AR = None
[libsqlite3-sys 0.22.2] running: "ar" "cq" "/usr/ports/security/vaultwarden/work/target/x86_64-unknown-freebsd/release/build/libsqlite3-sys-dbe3ee1a31533fc0/out/libsqlite3.a" "/usr/ports/security/vaultwarden/work/target/x86_64-unknown-freebsd/release/build/libsqlite3-sys-dbe3ee1a31533fc0/out/sqlite3/sqlite3.o"
[libsqlite3-sys 0.22.2] exit status: 0
[libsqlite3-sys 0.22.2] running: "ar" "s" "/usr/ports/security/vaultwarden/work/target/x86_64-unknown-freebsd/release/build/libsqlite3-sys-dbe3ee1a31533fc0/out/libsqlite3.a"
[libsqlite3-sys 0.22.2] exit status: 0
[libsqlite3-sys 0.22.2] cargo:rustc-link-lib=static=sqlite3
[libsqlite3-sys 0.22.2] cargo:rustc-link-search=native=/usr/ports/security/vaultwarden/work/target/x86_64-unknown-freebsd/release/build/libsqlite3-sys-dbe3ee1a31533fc0/out
[libsqlite3-sys 0.22.2] cargo:lib_dir=/usr/ports/security/vaultwarden/work/target/x86_64-unknown-freebsd/release/build/libsqlite3-sys-dbe3ee1a31533fc0/out
   Compiling time-macros-impl v0.1.2
     Running `CARGO=/usr/local/bin/cargo CARGO_CRATE_NAME=time_macros_impl CARGO_MANIFEST_DIR=/usr/ports/security/vaultwarden/work/vaultwarden-1.22.2/cargo-crates/time-macros-impl-0.1.2 CARGO_PKG_AUTHORS='Jacob Pratt <the.z.cuber@gmail.com>' CARGO_PKG_DESCRIPTION='Procedural macros for the time crate.' CARGO_PKG_HOMEPAGE='' CARGO_PKG_LICENSE='MIT OR Apache-2.0' CARGO_PKG_LICENSE_FILE='' CARGO_PKG_NAME=time-macros-impl CARGO_PKG_REPOSITORY='https://github.com/time-rs/time' CARGO_PKG_VERSION=0.1.2 CARGO_PKG_VERSION_MAJOR=0 CARGO_PKG_VERSION_MINOR=1 CARGO_PKG_VERSION_PATCH=2 CARGO_PKG_VERSION_PRE='' LD_LIBRARY_PATH='/usr/ports/security/vaultwarden/work/target/release/deps:/usr/local/lib' /usr/local/bin/rustc --crate-name time_macros_impl --edition=2018 /usr/ports/security/vaultwarden/work/vaultwarden-1.22.2/cargo-crates/time-macros-impl-0.1.2/src/lib.rs --error-format=json --json=diagnostic-rendered-ansi --crate-type proc-macro --emit=dep-info,link -C prefer-dynamic -C embed-bitcode=no -C debug-assertions=off -C metadata=faea53e9ce361719 -C extra-filename=-faea53e9ce361719 --out-dir /usr/ports/security/vaultwarden/work/target/release/deps -C linker=cc -L dependency=/usr/ports/security/vaultwarden/work/target/release/deps --extern proc_macro_hack=/usr/ports/security/vaultwarden/work/target/release/deps/libproc_macro_hack-fff85141502a2802.so --extern proc_macro2=/usr/ports/security/vaultwarden/work/target/release/deps/libproc_macro2-573486035c7ed182.rlib --extern quote=/usr/ports/security/vaultwarden/work/target/release/deps/libquote-6cdb3574e6dccc1d.rlib --extern standback=/usr/ports/security/vaultwarden/work/target/release/deps/libstandback-e3ef49c0a3b7aeb8.rlib --extern syn=/usr/ports/security/vaultwarden/work/target/release/deps/libsyn-2f16189befe952a7.rlib --extern proc_macro --cap-lints warn`
     Running `CARGO=/usr/local/bin/cargo CARGO_CRATE_NAME=futures_macro CARGO_MANIFEST_DIR=/usr/ports/security/vaultwarden/work/vaultwarden-1.22.2/cargo-crates/futures-macro-0.3.16 CARGO_PKG_AUTHORS='Taylor Cramer <cramertj@google.com>:Taiki Endo <te316e89@gmail.com>' CARGO_PKG_DESCRIPTION='The futures-rs procedural macro implementations.
' CARGO_PKG_HOMEPAGE='https://rust-lang.github.io/futures-rs' CARGO_PKG_LICENSE='MIT OR Apache-2.0' CARGO_PKG_LICENSE_FILE='' CARGO_PKG_NAME=futures-macro CARGO_PKG_REPOSITORY='https://github.com/rust-lang/futures-rs' CARGO_PKG_VERSION=0.3.16 CARGO_PKG_VERSION_MAJOR=0 CARGO_PKG_VERSION_MINOR=3 CARGO_PKG_VERSION_PATCH=16 CARGO_PKG_VERSION_PRE='' LD_LIBRARY_PATH='/usr/ports/security/vaultwarden/work/target/release/deps:/usr/local/lib' OUT_DIR=/usr/ports/security/vaultwarden/work/target/release/build/futures-macro-f4daceede67eed96/out /usr/local/bin/rustc --crate-name futures_macro --edition=2018 /usr/ports/security/vaultwarden/work/vaultwarden-1.22.2/cargo-crates/futures-macro-0.3.16/src/lib.rs --error-format=json --json=diagnostic-rendered-ansi --crate-type proc-macro --emit=dep-info,link -C prefer-dynamic -C embed-bitcode=no -C debug-assertions=off -C metadata=e462f0d4b03e2b6b -C extra-filename=-e462f0d4b03e2b6b --out-dir /usr/ports/security/vaultwarden/work/target/release/deps -C linker=cc -L dependency=/usr/ports/security/vaultwarden/work/target/release/deps --extern proc_macro_hack=/usr/ports/security/vaultwarden/work/target/release/deps/libproc_macro_hack-fff85141502a2802.so --extern proc_macro2=/usr/ports/security/vaultwarden/work/target/release/deps/libproc_macro2-573486035c7ed182.rlib --extern quote=/usr/ports/security/vaultwarden/work/target/release/deps/libquote-6cdb3574e6dccc1d.rlib --extern syn=/usr/ports/security/vaultwarden/work/target/release/deps/libsyn-2f16189befe952a7.rlib --extern proc_macro --cap-lints warn --cfg fn_like_proc_macro`
For more information about this error, try `rustc --explain E0554`.
warning: `devise_core` (lib) generated 12 warnings
error: could not compile `devise_core` due to 3 previous errors; 12 warnings emitted

Caused by:
  process didn't exit successfully: `CARGO=/usr/local/bin/cargo CARGO_CRATE_NAME=devise_core CARGO_MANIFEST_DIR=/usr/ports/security/vaultwarden/work/Devise-e58b3ac9afc3b6ff10a8aaf02a3e768a8f530089/core CARGO_PKG_AUTHORS='Sergio Benitez <sb@sergio.bz>' CARGO_PKG_DESCRIPTION='A library for devising derives and other procedural macros.' CARGO_PKG_HOMEPAGE='' CARGO_PKG_LICENSE=MIT/Apache-2.0 CARGO_PKG_LICENSE_FILE='' CARGO_PKG_NAME=devise_core CARGO_PKG_REPOSITORY='https://github.com/SergioBenitez/Devise' CARGO_PKG_VERSION=0.3.0 CARGO_PKG_VERSION_MAJOR=0 CARGO_PKG_VERSION_MINOR=3 CARGO_PKG_VERSION_PATCH=0 CARGO_PKG_VERSION_PRE='' LD_LIBRARY_PATH='/usr/ports/security/vaultwarden/work/target/release/deps:/usr/local/lib' /usr/local/bin/rustc --crate-name devise_core /usr/ports/security/vaultwarden/work/Devise-e58b3ac9afc3b6ff10a8aaf02a3e768a8f530089/core/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 -C metadata=bbce20bd2f3b1745 -C extra-filename=-bbce20bd2f3b1745 --out-dir /usr/ports/security/vaultwarden/work/target/release/deps -C linker=cc -L dependency=/usr/ports/security/vaultwarden/work/target/release/deps --extern bitflags=/usr/ports/security/vaultwarden/work/target/release/deps/libbitflags-cab142bb1999d2fd.rmeta --extern proc_macro2=/usr/ports/security/vaultwarden/work/target/release/deps/libproc_macro2-573486035c7ed182.rmeta --extern quote=/usr/ports/security/vaultwarden/work/target/release/deps/libquote-6cdb3574e6dccc1d.rmeta --extern syn=/usr/ports/security/vaultwarden/work/target/release/deps/libsyn-2f16189befe952a7.rmeta` (exit status: 1)
warning: build failed, waiting for other jobs to finish...
error: build failed
*** Error code 101

I don't know rust good enough to handle this sort of errors...
Comment 2 Mikael Urankar freebsd_committer freebsd_triage 2021-10-20 13:20:21 UTC
(In reply to Michael Reifenberger from comment #1)
You can use MAKE_ENV+=      RUSTC_BOOTSTRAP=devise_core,devise_codegen,h2,pear,pear_codegen,rocket,rocket_codegen,rocket_http

Not sure it's worth it though.
Comment 3 Jan Beich freebsd_committer freebsd_triage 2022-09-25 17:59:55 UTC
(In reply to Michael Reifenberger from comment #1)
Can you still reproduce? I've originally opened this bug because it built fine for me without RUSTC_BOOTSTRAP at all. Since then the port was updated several times and it still builds fine without RUSTC_BOOTSTRAP.
Comment 4 commit-hook freebsd_committer freebsd_triage 2022-12-21 20:26:49 UTC
A commit in branch main references this bug:

URL: https://cgit.FreeBSD.org/ports/commit/?id=0411212e7632a708250e2ecf2d4a1904fda0211b

commit 0411212e7632a708250e2ecf2d4a1904fda0211b
Author:     Michael Reifenberger <mr@FreeBSD.org>
AuthorDate: 2022-12-21 20:23:57 +0000
Commit:     Michael Reifenberger <mr@FreeBSD.org>
CommitDate: 2022-12-21 20:23:57 +0000

    security/vaultwarden: Drop RUSTC_BOOTSTRAP

    Try the build without RUSTC_BOOTSTRAP

    PR:             258368
    Reported by:    Jan Beich

 security/vaultwarden/Makefile | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
Comment 5 Bernard Spil freebsd_committer freebsd_triage 2023-09-02 13:39:01 UTC
Looks like this has been long fixed. Still builds fine without RUSTC_BOOTSTRAP