[GH-ISSUE #1002] Packaging lldap for openSUSE: building wasm-pack fails due to #365

Closed
opened 2026-02-27 08:16:53 +03:00 by kerem · 10 comments
Owner

Originally created by @johanneskastl on GitHub (Oct 16, 2024).
Original GitHub issue: https://github.com/lldap/lldap/issues/1002

Hi,

I found lldap, tested it and really liked it. I know that there are packages for openSUSE, but I would like to create a official package, that can be installed from the distribution. If it has been accepted to Tumbleweed, it would be possible to include it in the upcoming Leap 16.0 release.

I have a working package, the only thing is the wasm-pack. Running the wasm-pack command fails. I have no rust or wasm experience, thus any pointers would be highly appreciated.

Thanks in advance!

Kind Regards,
Johannes

Building for openSUSE Tumbleweed, using wasm-pack-0.13.0~0-2.1, rust1.81-1.81.0-2.1 and cargo1.81-1.81.0-2.1, I get the error message further below when running the build command:

echo "Start building frontend files"
cd ./app && wasm-pack build --target web --release --mode no-install -- --offline
gzip -9 -k -f pkg/lldap_app_bg.wasm

I am currently using the code from the main branch at commit a6eac55, as the 0.5.0 release did not build properly with rust1.81.

The complete log file is here:

https://build.opensuse.org/package/live_build_log/home:ojkastl_buildservice:Branch_network_ldap/lldap-with-wasm-pack/openSUSE_Tumbleweed/x86_64

This is the part of the log where it starts throwing errors.

[  690s]    Compiling lldap_app v0.5.1-alpha (/home/abuild/rpmbuild/BUILD/lldap-0.5.0.1728338628.a6eac55/app)
[  690s] error: Unexpected type `string`
[  690s]   --> app/src/components/create_group_attribute.rs:40:25
[  690s]    |
[  690s] 40 |     #[validate(custom = "validate_attribute_type")]
[  690s]    |                         ^^^^^^^^^^^^^^^^^^^^^^^^^
[  690s] 
[  690s] error: Unexpected type `string`
[  690s]   --> app/src/components/create_user_attribute.rs:40:25
[  690s]    |
[  690s] 40 |     #[validate(custom = "validate_attribute_type")]
[  690s]    |                         ^^^^^^^^^^^^^^^^^^^^^^^^^
[  690s] 
[  690s] error[E0432]: unresolved import `validator`
[  690s]   --> app/src/components/change_password.rs:35:17
[  690s]    |
[  690s] 35 | #[derive(Model, Validate, PartialEq, Eq, Clone, Default)]
[  690s]    |                 ^^^^^^^^ no `ValidateLength` in the root
[  690s]    |
[  690s]    = note: this error originates in the derive macro `Validate` (in Nightly builds, run with -Z macro-backtrace for more info)
[  690s] 
[  690s] error[E0432]: unresolved import `validator`
[  690s]   --> app/src/components/create_group.rs:30:17
[  690s]    |
[  690s] 30 | #[derive(Model, Validate, PartialEq, Eq, Clone, Default)]
[  690s]    |                 ^^^^^^^^ no `ValidateLength` in the root
[  690s]    |
[  690s]    = note: this error originates in the derive macro `Validate` (in Nightly builds, run with -Z macro-backtrace for more info)
[  690s] 
[  690s] error[E0432]: unresolved import `validator`
[  690s]   --> app/src/components/create_user.rs:69:17
[  690s]    |
[  690s] 69 | #[derive(Model, Validate, PartialEq, Eq, Clone, Default)]
[  690s]    |                 ^^^^^^^^ no `ValidateLength` in the root
[  690s]    |
[  690s]    = note: this error originates in the derive macro `Validate` (in Nightly builds, run with -Z macro-backtrace for more info)
[  690s] 
[  690s] error[E0432]: unresolved import `validator`
[  690s]   --> app/src/components/login.rs:26:17
[  690s]    |
[  690s] 26 | #[derive(Model, Validate, PartialEq, Eq, Clone, Default)]
[  690s]    |                 ^^^^^^^^ no `ValidateLength` in the root
[  690s]    |
[  690s]    = note: this error originates in the derive macro `Validate` (in Nightly builds, run with -Z macro-backtrace for more info)
[  690s] 
[  690s] error[E0432]: unresolved import `validator`
[  690s]   --> app/src/components/reset_password_step1.rs:21:17
[  690s]    |
[  690s] 21 | #[derive(Model, Validate, PartialEq, Eq, Clone, Default)]
[  690s]    |                 ^^^^^^^^ no `ValidateLength` in the root
[  690s]    |
[  690s]    = note: this error originates in the derive macro `Validate` (in Nightly builds, run with -Z macro-backtrace for more info)
[  690s] 
[  690s] error[E0432]: unresolved import `validator`
[  690s]   --> app/src/components/reset_password_step2.rs:23:17
[  690s]    |
[  690s] 23 | #[derive(Model, Validate, PartialEq, Eq, Clone, Default)]
[  690s]    |                 ^^^^^^^^ no `ValidateLength` in the root
[  690s]    |
[  690s]    = note: this error originates in the derive macro `Validate` (in Nightly builds, run with -Z macro-backtrace for more info)
[  690s] 
[  690s] error[E0407]: method `validate_with_args` is not a member of trait `validator::ValidateArgs`
[  690s]   --> app/src/components/change_password.rs:35:17
[  690s]    |
[  690s] 35 | #[derive(Model, Validate, PartialEq, Eq, Clone, Default)]
[  690s]    |                 ^^^^^^^^
[  690s]    |                 |
[  690s]    |                 not a member of trait `validator::ValidateArgs`
[  690s]    |                 help: there is an associated function with a similar name: `validate_args`
[  690s]    |
[  690s]    = note: this error originates in the derive macro `Validate` (in Nightly builds, run with -Z macro-backtrace for more info)
[  690s] 
[  690s] error[E0407]: method `validate_with_args` is not a member of trait `validator::ValidateArgs`
[  690s]   --> app/src/components/create_group.rs:30:17
[  690s]    |
[  690s] 30 | #[derive(Model, Validate, PartialEq, Eq, Clone, Default)]
[  690s]    |                 ^^^^^^^^
[  690s]    |                 |
[  690s]    |                 not a member of trait `validator::ValidateArgs`
[  690s]    |                 help: there is an associated function with a similar name: `validate_args`
[  690s]    |
[  690s]    = note: this error originates in the derive macro `Validate` (in Nightly builds, run with -Z macro-backtrace for more info)
[  690s] 
[  690s] error[E0407]: method `validate_with_args` is not a member of trait `validator::ValidateArgs`
[  690s]   --> app/src/components/create_user.rs:69:17
[  690s]    |
[  690s] 69 | #[derive(Model, Validate, PartialEq, Eq, Clone, Default)]
[  690s]    |                 ^^^^^^^^
[  690s]    |                 |
[  690s]    |                 not a member of trait `validator::ValidateArgs`
[  690s]    |                 help: there is an associated function with a similar name: `validate_args`
[  690s]    |
[  690s]    = note: this error originates in the derive macro `Validate` (in Nightly builds, run with -Z macro-backtrace for more info)
[  690s] 
[  690s] error[E0407]: method `validate_with_args` is not a member of trait `validator::ValidateArgs`
[  690s]   --> app/src/components/login.rs:26:17
[  690s]    |
[  690s] 26 | #[derive(Model, Validate, PartialEq, Eq, Clone, Default)]
[  690s]    |                 ^^^^^^^^
[  690s]    |                 |
[  690s]    |                 not a member of trait `validator::ValidateArgs`
[  690s]    |                 help: there is an associated function with a similar name: `validate_args`
[  690s]    |
[  690s]    = note: this error originates in the derive macro `Validate` (in Nightly builds, run with -Z macro-backtrace for more info)
[  690s] 
[  690s] error[E0407]: method `validate_with_args` is not a member of trait `validator::ValidateArgs`
[  690s]   --> app/src/components/reset_password_step1.rs:21:17
[  690s]    |
[  690s] 21 | #[derive(Model, Validate, PartialEq, Eq, Clone, Default)]
[  690s]    |                 ^^^^^^^^
[  690s]    |                 |
[  690s]    |                 not a member of trait `validator::ValidateArgs`
[  690s]    |                 help: there is an associated function with a similar name: `validate_args`
[  690s]    |
[  690s]    = note: this error originates in the derive macro `Validate` (in Nightly builds, run with -Z macro-backtrace for more info)
[  690s] 
[  690s] error[E0407]: method `validate_with_args` is not a member of trait `validator::ValidateArgs`
[  690s]   --> app/src/components/reset_password_step2.rs:23:17
[  690s]    |
[  690s] 23 | #[derive(Model, Validate, PartialEq, Eq, Clone, Default)]
[  690s]    |                 ^^^^^^^^
[  690s]    |                 |
[  690s]    |                 not a member of trait `validator::ValidateArgs`
[  690s]    |                 help: there is an associated function with a similar name: `validate_args`
[  690s]    |
[  690s]    = note: this error originates in the derive macro `Validate` (in Nightly builds, run with -Z macro-backtrace for more info)
[  690s] 
[  690s] warning: unused import: `validate_attribute_type`
[  690s]  --> app/src/components/create_group_attribute.rs:9:18
[  690s]   |
[  690s] 9 |         schema::{validate_attribute_type, AttributeType},
[  690s]   |                  ^^^^^^^^^^^^^^^^^^^^^^^
[  690s]   |
[  690s]   = note: `#[warn(unused_imports)]` on by default
[  690s] 
[  690s] warning: unused import: `validate_attribute_type`
[  690s]  --> app/src/components/create_user_attribute.rs:9:18
[  690s]   |
[  690s] 9 |         schema::{validate_attribute_type, AttributeType},
[  690s]   |                  ^^^^^^^^^^^^^^^^^^^^^^^
[  690s] 
[  691s] error[E0046]: not all trait items implemented, missing: `validate_args`
[  691s]   --> app/src/components/change_password.rs:35:17
[  691s]    |
[  691s] 35 | #[derive(Model, Validate, PartialEq, Eq, Clone, Default)]
[  691s]    |                 ^^^^^^^^ missing `validate_args` in implementation
[  691s]    |
[  691s]    = note: this error originates in the derive macro `Validate` (in Nightly builds, run with -Z macro-backtrace for more info)
[  691s] 
[  691s] error[E0046]: not all trait items implemented, missing: `validate_args`
[  691s]   --> app/src/components/create_group.rs:30:17
[  691s]    |
[  691s] 30 | #[derive(Model, Validate, PartialEq, Eq, Clone, Default)]
[  691s]    |                 ^^^^^^^^ missing `validate_args` in implementation
[  691s]    |
[  691s]    = note: this error originates in the derive macro `Validate` (in Nightly builds, run with -Z macro-backtrace for more info)
[  691s] 
[  691s] error[E0277]: the trait bound `CreateGroupAttributeModel: Validate` is not satisfied
[  691s]   --> app/src/components/create_group_attribute.rs:37:12
[  691s]    |
[  691s] 37 | pub struct CreateGroupAttributeModel {
[  691s]    |            ^^^^^^^^^^^^^^^^^^^^^^^^^ the trait `Validate` is not implemented for `CreateGroupAttributeModel`
[  691s]    |
[  691s]    = help: the following other types implement trait `Validate`:
[  691s]              &T
[  691s]              CreateGroupModel
[  691s]              CreateUserModel
[  691s]              change_password::FormModel
[  691s]              components::login::FormModel
[  691s]              reset_password_step1::FormModel
[  691s]              reset_password_step2::FormModel
[  691s] note: required by a bound in `Model`
[  691s]   --> /home/abuild/rpmbuild/BUILD/lldap-0.5.0.1728338628.a6eac55/vendor/yew_form/src/model.rs:14:30
[  691s]    |
[  691s] 14 | pub trait Model: FormValue + Validate + PartialEq + Clone + 'static {
[  691s]    |                              ^^^^^^^^ required by this bound in `Model`
[  691s] 
[  691s] error[E0046]: not all trait items implemented, missing: `validate_args`
[  691s]   --> app/src/components/create_user.rs:69:17
[  691s]    |
[  691s] 69 | #[derive(Model, Validate, PartialEq, Eq, Clone, Default)]
[  691s]    |                 ^^^^^^^^ missing `validate_args` in implementation
[  691s]    |
[  691s]    = note: this error originates in the derive macro `Validate` (in Nightly builds, run with -Z macro-backtrace for more info)
[  691s] 
[  691s] error[E0277]: the trait bound `CreateUserAttributeModel: Validate` is not satisfied
[  691s]   --> app/src/components/create_user_attribute.rs:37:12
[  691s]    |
[  691s] 37 | pub struct CreateUserAttributeModel {
[  691s]    |            ^^^^^^^^^^^^^^^^^^^^^^^^ the trait `Validate` is not implemented for `CreateUserAttributeModel`
[  691s]    |
[  691s]    = help: the following other types implement trait `Validate`:
[  691s]              &T
[  691s]              CreateGroupModel
[  691s]              CreateUserModel
[  691s]              change_password::FormModel
[  691s]              components::login::FormModel
[  691s]              reset_password_step1::FormModel
[  691s]              reset_password_step2::FormModel
[  691s] note: required by a bound in `Model`
[  691s]   --> /home/abuild/rpmbuild/BUILD/lldap-0.5.0.1728338628.a6eac55/vendor/yew_form/src/model.rs:14:30
[  691s]    |
[  691s] 14 | pub trait Model: FormValue + Validate + PartialEq + Clone + 'static {
[  691s]    |                              ^^^^^^^^ required by this bound in `Model`
[  691s] 
[  691s] error[E0046]: not all trait items implemented, missing: `validate_args`
[  691s]   --> app/src/components/login.rs:26:17
[  691s]    |
[  691s] 26 | #[derive(Model, Validate, PartialEq, Eq, Clone, Default)]
[  691s]    |                 ^^^^^^^^ missing `validate_args` in implementation
[  691s]    |
[  691s]    = note: this error originates in the derive macro `Validate` (in Nightly builds, run with -Z macro-backtrace for more info)
[  691s] 
[  691s] error[E0046]: not all trait items implemented, missing: `validate_args`
[  691s]   --> app/src/components/reset_password_step1.rs:21:17
[  691s]    |
[  691s] 21 | #[derive(Model, Validate, PartialEq, Eq, Clone, Default)]
[  691s]    |                 ^^^^^^^^ missing `validate_args` in implementation
[  691s]    |
[  691s]    = note: this error originates in the derive macro `Validate` (in Nightly builds, run with -Z macro-backtrace for more info)
[  691s] 
[  691s] error[E0046]: not all trait items implemented, missing: `validate_args`
[  691s]   --> app/src/components/reset_password_step2.rs:23:17
[  691s]    |
[  691s] 23 | #[derive(Model, Validate, PartialEq, Eq, Clone, Default)]
[  691s]    |                 ^^^^^^^^ missing `validate_args` in implementation
[  691s]    |
[  691s]    = note: this error originates in the derive macro `Validate` (in Nightly builds, run with -Z macro-backtrace for more info)
[  691s] 
[  691s] error[E0599]: no function or associated item named `new` found for struct `gloo_net::http::Request` in the current scope
[  691s]   --> app/src/infra/api.rs:35:32
[  691s]    |
[  691s] 35 |     let mut request = Request::new(url)
[  691s]    |                                ^^^ function or associated item not found in `Request`
[  691s] 
[  691s] error[E0599]: no method named `validate_with_args` found for reference `&change_password::FormModel` in the current scope
[  691s]   --> app/src/components/change_password.rs:35:17
[  691s]    |
[  691s] 35 | #[derive(Model, Validate, PartialEq, Eq, Clone, Default)]
[  691s]    |                 ^^^^^^^^
[  691s]    |
[  691s]    = note: this error originates in the derive macro `Validate` (in Nightly builds, run with -Z macro-backtrace for more info)
[  691s] 
[  691s] error[E0599]: no method named `validate_length` found for struct `std::string::String` in the current scope
[  691s]   --> app/src/components/change_password.rs:35:17
[  691s]    |
[  691s] 35 | #[derive(Model, Validate, PartialEq, Eq, Clone, Default)]
[  691s]    |                 ^^^^^^^^ method not found in `String`
[  691s]    |
[  691s]    = note: this error originates in the derive macro `Validate` (in Nightly builds, run with -Z macro-backtrace for more info)
[  691s] 
[  691s] error[E0599]: no method named `validate_with_args` found for reference `&CreateGroupModel` in the current scope
[  691s]   --> app/src/components/create_group.rs:30:17
[  691s]    |
[  691s] 30 | #[derive(Model, Validate, PartialEq, Eq, Clone, Default)]
[  691s]    |                 ^^^^^^^^
[  691s]    |
[  691s]    = note: this error originates in the derive macro `Validate` (in Nightly builds, run with -Z macro-backtrace for more info)
[  691s] 
[  691s] error[E0599]: no method named `validate_length` found for struct `std::string::String` in the current scope
[  691s]   --> app/src/components/create_group.rs:30:17
[  691s]    |
[  691s] 30 | #[derive(Model, Validate, PartialEq, Eq, Clone, Default)]
[  691s]    |                 ^^^^^^^^ method not found in `String`
[  691s]    |
[  691s]    = note: this error originates in the derive macro `Validate` (in Nightly builds, run with -Z macro-backtrace for more info)
[  691s] 
[  691s] error[E0599]: no method named `validate_with_args` found for reference `&CreateUserModel` in the current scope
[  691s]   --> app/src/components/create_user.rs:69:17
[  691s]    |
[  691s] 69 | #[derive(Model, Validate, PartialEq, Eq, Clone, Default)]
[  691s]    |                 ^^^^^^^^
[  691s]    |
[  691s]    = note: this error originates in the derive macro `Validate` (in Nightly builds, run with -Z macro-backtrace for more info)
[  691s] 
[  691s] error[E0599]: no method named `validate_length` found for struct `std::string::String` in the current scope
[  691s]   --> app/src/components/create_user.rs:69:17
[  691s]    |
[  691s] 69 | #[derive(Model, Validate, PartialEq, Eq, Clone, Default)]
[  691s]    |                 ^^^^^^^^ method not found in `String`
[  691s]    |
[  691s]    = note: this error originates in the derive macro `Validate` (in Nightly builds, run with -Z macro-backtrace for more info)
[  691s] 
[  691s] warning: use of deprecated associated function `chrono::DateTime::<Tz>::from_utc`: Use TimeZone::from_utc_datetime() or DateTime::from_naive_utc_and_offset instead
[  691s]   --> app/src/components/form/date_input.rs:43:48
[  691s]    |
[  691s] 43 | ...                   .map(|x| DateTime::from_utc(x, Utc))
[  691s]    |                                          ^^^^^^^^
[  691s]    |
[  691s]    = note: `#[warn(deprecated)]` on by default
[  691s] 
[  691s] error[E0599]: no method named `validate_with_args` found for reference `&components::login::FormModel` in the current scope
[  691s]   --> app/src/components/login.rs:26:17
[  691s]    |
[  691s] 26 | #[derive(Model, Validate, PartialEq, Eq, Clone, Default)]
[  691s]    |                 ^^^^^^^^
[  691s]    |
[  691s]    = note: this error originates in the derive macro `Validate` (in Nightly builds, run with -Z macro-backtrace for more info)
[  691s] 
[  691s] error[E0599]: no method named `validate_length` found for struct `std::string::String` in the current scope
[  691s]   --> app/src/components/login.rs:26:17
[  691s]    |
[  691s] 26 | #[derive(Model, Validate, PartialEq, Eq, Clone, Default)]
[  691s]    |                 ^^^^^^^^ method not found in `String`
[  691s]    |
[  691s]    = note: this error originates in the derive macro `Validate` (in Nightly builds, run with -Z macro-backtrace for more info)
[  691s] 
[  691s] error[E0599]: no method named `validate_with_args` found for reference `&reset_password_step1::FormModel` in the current scope
[  691s]   --> app/src/components/reset_password_step1.rs:21:17
[  691s]    |
[  691s] 21 | #[derive(Model, Validate, PartialEq, Eq, Clone, Default)]
[  691s]    |                 ^^^^^^^^
[  691s]    |
[  691s]    = note: this error originates in the derive macro `Validate` (in Nightly builds, run with -Z macro-backtrace for more info)
[  691s] 
[  691s] error[E0599]: no method named `validate_length` found for struct `std::string::String` in the current scope
[  691s]   --> app/src/components/reset_password_step1.rs:21:17
[  691s]    |
[  691s] 21 | #[derive(Model, Validate, PartialEq, Eq, Clone, Default)]
[  691s]    |                 ^^^^^^^^ method not found in `String`
[  691s]    |
[  691s]    = note: this error originates in the derive macro `Validate` (in Nightly builds, run with -Z macro-backtrace for more info)
[  691s] 
[  691s] error[E0599]: no method named `validate_with_args` found for reference `&reset_password_step2::FormModel` in the current scope
[  691s]   --> app/src/components/reset_password_step2.rs:23:17
[  691s]    |
[  691s] 23 | #[derive(Model, Validate, PartialEq, Eq, Clone, Default)]
[  691s]    |                 ^^^^^^^^
[  691s]    |
[  691s]    = note: this error originates in the derive macro `Validate` (in Nightly builds, run with -Z macro-backtrace for more info)
[  691s] 
[  691s] error[E0599]: no method named `validate_length` found for struct `std::string::String` in the current scope
[  691s]   --> app/src/components/reset_password_step2.rs:23:17
[  691s]    |
[  691s] 23 | #[derive(Model, Validate, PartialEq, Eq, Clone, Default)]
[  691s]    |                 ^^^^^^^^ method not found in `String`
[  691s]    |
[  691s]    = note: this error originates in the derive macro `Validate` (in Nightly builds, run with -Z macro-backtrace for more info)
[  691s] 
[  692s] Some errors have detailed explanations: E0046, E0277, E0407, E0432, E0599.
[  692s] For more information about an error, try `rustc --explain E0046`.
[  692s] warning: `lldap_app` (lib) generated 3 warnings
[  692s] error: could not compile `lldap_app` (lib) due to 35 previous errors; 3 warnings emitted
[  693s] Error: Compiling your crate to WebAssembly failed
[  693s] Caused by: Compiling your crate to WebAssembly failed
[  693s] Caused by: failed to execute `cargo build`: exited with exit status: 101
[  693s]   full command: cd "/home/abuild/rpmbuild/BUILD/lldap-0.5.0.1728338628.a6eac55/app" && "cargo" "build" "--lib" "--release" "--target" "wasm32-unknown-unknown" "--offline"
[  693s] error: Bad exit status from /var/tmp/rpm-tmp.EJqjZ0 (%build)
Originally created by @johanneskastl on GitHub (Oct 16, 2024). Original GitHub issue: https://github.com/lldap/lldap/issues/1002 Hi, I found lldap, tested it and really liked it. I know that there are packages for openSUSE, but I would like to create a official package, that can be installed from the distribution. If it has been accepted to Tumbleweed, it would be possible to include it in the upcoming Leap 16.0 release. I have a working package, the only thing is the wasm-pack. Running the `wasm-pack` command fails. I have no rust or wasm experience, thus any pointers would be highly appreciated. Thanks in advance! Kind Regards, Johannes Building for openSUSE Tumbleweed, using wasm-pack-0.13.0~0-2.1, rust1.81-1.81.0-2.1 and cargo1.81-1.81.0-2.1, I get the error message further below when running the build command: ``` echo "Start building frontend files" cd ./app && wasm-pack build --target web --release --mode no-install -- --offline gzip -9 -k -f pkg/lldap_app_bg.wasm ``` I am currently using the code from the main branch at commit a6eac55, as the 0.5.0 release did not build properly with rust1.81. The complete log file is here: https://build.opensuse.org/package/live_build_log/home:ojkastl_buildservice:Branch_network_ldap/lldap-with-wasm-pack/openSUSE_Tumbleweed/x86_64 This is the part of the log where it starts throwing errors. ``` [ 690s] Compiling lldap_app v0.5.1-alpha (/home/abuild/rpmbuild/BUILD/lldap-0.5.0.1728338628.a6eac55/app) [ 690s] error: Unexpected type `string` [ 690s] --> app/src/components/create_group_attribute.rs:40:25 [ 690s] | [ 690s] 40 | #[validate(custom = "validate_attribute_type")] [ 690s] | ^^^^^^^^^^^^^^^^^^^^^^^^^ [ 690s] [ 690s] error: Unexpected type `string` [ 690s] --> app/src/components/create_user_attribute.rs:40:25 [ 690s] | [ 690s] 40 | #[validate(custom = "validate_attribute_type")] [ 690s] | ^^^^^^^^^^^^^^^^^^^^^^^^^ [ 690s] [ 690s] error[E0432]: unresolved import `validator` [ 690s] --> app/src/components/change_password.rs:35:17 [ 690s] | [ 690s] 35 | #[derive(Model, Validate, PartialEq, Eq, Clone, Default)] [ 690s] | ^^^^^^^^ no `ValidateLength` in the root [ 690s] | [ 690s] = note: this error originates in the derive macro `Validate` (in Nightly builds, run with -Z macro-backtrace for more info) [ 690s] [ 690s] error[E0432]: unresolved import `validator` [ 690s] --> app/src/components/create_group.rs:30:17 [ 690s] | [ 690s] 30 | #[derive(Model, Validate, PartialEq, Eq, Clone, Default)] [ 690s] | ^^^^^^^^ no `ValidateLength` in the root [ 690s] | [ 690s] = note: this error originates in the derive macro `Validate` (in Nightly builds, run with -Z macro-backtrace for more info) [ 690s] [ 690s] error[E0432]: unresolved import `validator` [ 690s] --> app/src/components/create_user.rs:69:17 [ 690s] | [ 690s] 69 | #[derive(Model, Validate, PartialEq, Eq, Clone, Default)] [ 690s] | ^^^^^^^^ no `ValidateLength` in the root [ 690s] | [ 690s] = note: this error originates in the derive macro `Validate` (in Nightly builds, run with -Z macro-backtrace for more info) [ 690s] [ 690s] error[E0432]: unresolved import `validator` [ 690s] --> app/src/components/login.rs:26:17 [ 690s] | [ 690s] 26 | #[derive(Model, Validate, PartialEq, Eq, Clone, Default)] [ 690s] | ^^^^^^^^ no `ValidateLength` in the root [ 690s] | [ 690s] = note: this error originates in the derive macro `Validate` (in Nightly builds, run with -Z macro-backtrace for more info) [ 690s] [ 690s] error[E0432]: unresolved import `validator` [ 690s] --> app/src/components/reset_password_step1.rs:21:17 [ 690s] | [ 690s] 21 | #[derive(Model, Validate, PartialEq, Eq, Clone, Default)] [ 690s] | ^^^^^^^^ no `ValidateLength` in the root [ 690s] | [ 690s] = note: this error originates in the derive macro `Validate` (in Nightly builds, run with -Z macro-backtrace for more info) [ 690s] [ 690s] error[E0432]: unresolved import `validator` [ 690s] --> app/src/components/reset_password_step2.rs:23:17 [ 690s] | [ 690s] 23 | #[derive(Model, Validate, PartialEq, Eq, Clone, Default)] [ 690s] | ^^^^^^^^ no `ValidateLength` in the root [ 690s] | [ 690s] = note: this error originates in the derive macro `Validate` (in Nightly builds, run with -Z macro-backtrace for more info) [ 690s] [ 690s] error[E0407]: method `validate_with_args` is not a member of trait `validator::ValidateArgs` [ 690s] --> app/src/components/change_password.rs:35:17 [ 690s] | [ 690s] 35 | #[derive(Model, Validate, PartialEq, Eq, Clone, Default)] [ 690s] | ^^^^^^^^ [ 690s] | | [ 690s] | not a member of trait `validator::ValidateArgs` [ 690s] | help: there is an associated function with a similar name: `validate_args` [ 690s] | [ 690s] = note: this error originates in the derive macro `Validate` (in Nightly builds, run with -Z macro-backtrace for more info) [ 690s] [ 690s] error[E0407]: method `validate_with_args` is not a member of trait `validator::ValidateArgs` [ 690s] --> app/src/components/create_group.rs:30:17 [ 690s] | [ 690s] 30 | #[derive(Model, Validate, PartialEq, Eq, Clone, Default)] [ 690s] | ^^^^^^^^ [ 690s] | | [ 690s] | not a member of trait `validator::ValidateArgs` [ 690s] | help: there is an associated function with a similar name: `validate_args` [ 690s] | [ 690s] = note: this error originates in the derive macro `Validate` (in Nightly builds, run with -Z macro-backtrace for more info) [ 690s] [ 690s] error[E0407]: method `validate_with_args` is not a member of trait `validator::ValidateArgs` [ 690s] --> app/src/components/create_user.rs:69:17 [ 690s] | [ 690s] 69 | #[derive(Model, Validate, PartialEq, Eq, Clone, Default)] [ 690s] | ^^^^^^^^ [ 690s] | | [ 690s] | not a member of trait `validator::ValidateArgs` [ 690s] | help: there is an associated function with a similar name: `validate_args` [ 690s] | [ 690s] = note: this error originates in the derive macro `Validate` (in Nightly builds, run with -Z macro-backtrace for more info) [ 690s] [ 690s] error[E0407]: method `validate_with_args` is not a member of trait `validator::ValidateArgs` [ 690s] --> app/src/components/login.rs:26:17 [ 690s] | [ 690s] 26 | #[derive(Model, Validate, PartialEq, Eq, Clone, Default)] [ 690s] | ^^^^^^^^ [ 690s] | | [ 690s] | not a member of trait `validator::ValidateArgs` [ 690s] | help: there is an associated function with a similar name: `validate_args` [ 690s] | [ 690s] = note: this error originates in the derive macro `Validate` (in Nightly builds, run with -Z macro-backtrace for more info) [ 690s] [ 690s] error[E0407]: method `validate_with_args` is not a member of trait `validator::ValidateArgs` [ 690s] --> app/src/components/reset_password_step1.rs:21:17 [ 690s] | [ 690s] 21 | #[derive(Model, Validate, PartialEq, Eq, Clone, Default)] [ 690s] | ^^^^^^^^ [ 690s] | | [ 690s] | not a member of trait `validator::ValidateArgs` [ 690s] | help: there is an associated function with a similar name: `validate_args` [ 690s] | [ 690s] = note: this error originates in the derive macro `Validate` (in Nightly builds, run with -Z macro-backtrace for more info) [ 690s] [ 690s] error[E0407]: method `validate_with_args` is not a member of trait `validator::ValidateArgs` [ 690s] --> app/src/components/reset_password_step2.rs:23:17 [ 690s] | [ 690s] 23 | #[derive(Model, Validate, PartialEq, Eq, Clone, Default)] [ 690s] | ^^^^^^^^ [ 690s] | | [ 690s] | not a member of trait `validator::ValidateArgs` [ 690s] | help: there is an associated function with a similar name: `validate_args` [ 690s] | [ 690s] = note: this error originates in the derive macro `Validate` (in Nightly builds, run with -Z macro-backtrace for more info) [ 690s] [ 690s] warning: unused import: `validate_attribute_type` [ 690s] --> app/src/components/create_group_attribute.rs:9:18 [ 690s] | [ 690s] 9 | schema::{validate_attribute_type, AttributeType}, [ 690s] | ^^^^^^^^^^^^^^^^^^^^^^^ [ 690s] | [ 690s] = note: `#[warn(unused_imports)]` on by default [ 690s] [ 690s] warning: unused import: `validate_attribute_type` [ 690s] --> app/src/components/create_user_attribute.rs:9:18 [ 690s] | [ 690s] 9 | schema::{validate_attribute_type, AttributeType}, [ 690s] | ^^^^^^^^^^^^^^^^^^^^^^^ [ 690s] [ 691s] error[E0046]: not all trait items implemented, missing: `validate_args` [ 691s] --> app/src/components/change_password.rs:35:17 [ 691s] | [ 691s] 35 | #[derive(Model, Validate, PartialEq, Eq, Clone, Default)] [ 691s] | ^^^^^^^^ missing `validate_args` in implementation [ 691s] | [ 691s] = note: this error originates in the derive macro `Validate` (in Nightly builds, run with -Z macro-backtrace for more info) [ 691s] [ 691s] error[E0046]: not all trait items implemented, missing: `validate_args` [ 691s] --> app/src/components/create_group.rs:30:17 [ 691s] | [ 691s] 30 | #[derive(Model, Validate, PartialEq, Eq, Clone, Default)] [ 691s] | ^^^^^^^^ missing `validate_args` in implementation [ 691s] | [ 691s] = note: this error originates in the derive macro `Validate` (in Nightly builds, run with -Z macro-backtrace for more info) [ 691s] [ 691s] error[E0277]: the trait bound `CreateGroupAttributeModel: Validate` is not satisfied [ 691s] --> app/src/components/create_group_attribute.rs:37:12 [ 691s] | [ 691s] 37 | pub struct CreateGroupAttributeModel { [ 691s] | ^^^^^^^^^^^^^^^^^^^^^^^^^ the trait `Validate` is not implemented for `CreateGroupAttributeModel` [ 691s] | [ 691s] = help: the following other types implement trait `Validate`: [ 691s] &T [ 691s] CreateGroupModel [ 691s] CreateUserModel [ 691s] change_password::FormModel [ 691s] components::login::FormModel [ 691s] reset_password_step1::FormModel [ 691s] reset_password_step2::FormModel [ 691s] note: required by a bound in `Model` [ 691s] --> /home/abuild/rpmbuild/BUILD/lldap-0.5.0.1728338628.a6eac55/vendor/yew_form/src/model.rs:14:30 [ 691s] | [ 691s] 14 | pub trait Model: FormValue + Validate + PartialEq + Clone + 'static { [ 691s] | ^^^^^^^^ required by this bound in `Model` [ 691s] [ 691s] error[E0046]: not all trait items implemented, missing: `validate_args` [ 691s] --> app/src/components/create_user.rs:69:17 [ 691s] | [ 691s] 69 | #[derive(Model, Validate, PartialEq, Eq, Clone, Default)] [ 691s] | ^^^^^^^^ missing `validate_args` in implementation [ 691s] | [ 691s] = note: this error originates in the derive macro `Validate` (in Nightly builds, run with -Z macro-backtrace for more info) [ 691s] [ 691s] error[E0277]: the trait bound `CreateUserAttributeModel: Validate` is not satisfied [ 691s] --> app/src/components/create_user_attribute.rs:37:12 [ 691s] | [ 691s] 37 | pub struct CreateUserAttributeModel { [ 691s] | ^^^^^^^^^^^^^^^^^^^^^^^^ the trait `Validate` is not implemented for `CreateUserAttributeModel` [ 691s] | [ 691s] = help: the following other types implement trait `Validate`: [ 691s] &T [ 691s] CreateGroupModel [ 691s] CreateUserModel [ 691s] change_password::FormModel [ 691s] components::login::FormModel [ 691s] reset_password_step1::FormModel [ 691s] reset_password_step2::FormModel [ 691s] note: required by a bound in `Model` [ 691s] --> /home/abuild/rpmbuild/BUILD/lldap-0.5.0.1728338628.a6eac55/vendor/yew_form/src/model.rs:14:30 [ 691s] | [ 691s] 14 | pub trait Model: FormValue + Validate + PartialEq + Clone + 'static { [ 691s] | ^^^^^^^^ required by this bound in `Model` [ 691s] [ 691s] error[E0046]: not all trait items implemented, missing: `validate_args` [ 691s] --> app/src/components/login.rs:26:17 [ 691s] | [ 691s] 26 | #[derive(Model, Validate, PartialEq, Eq, Clone, Default)] [ 691s] | ^^^^^^^^ missing `validate_args` in implementation [ 691s] | [ 691s] = note: this error originates in the derive macro `Validate` (in Nightly builds, run with -Z macro-backtrace for more info) [ 691s] [ 691s] error[E0046]: not all trait items implemented, missing: `validate_args` [ 691s] --> app/src/components/reset_password_step1.rs:21:17 [ 691s] | [ 691s] 21 | #[derive(Model, Validate, PartialEq, Eq, Clone, Default)] [ 691s] | ^^^^^^^^ missing `validate_args` in implementation [ 691s] | [ 691s] = note: this error originates in the derive macro `Validate` (in Nightly builds, run with -Z macro-backtrace for more info) [ 691s] [ 691s] error[E0046]: not all trait items implemented, missing: `validate_args` [ 691s] --> app/src/components/reset_password_step2.rs:23:17 [ 691s] | [ 691s] 23 | #[derive(Model, Validate, PartialEq, Eq, Clone, Default)] [ 691s] | ^^^^^^^^ missing `validate_args` in implementation [ 691s] | [ 691s] = note: this error originates in the derive macro `Validate` (in Nightly builds, run with -Z macro-backtrace for more info) [ 691s] [ 691s] error[E0599]: no function or associated item named `new` found for struct `gloo_net::http::Request` in the current scope [ 691s] --> app/src/infra/api.rs:35:32 [ 691s] | [ 691s] 35 | let mut request = Request::new(url) [ 691s] | ^^^ function or associated item not found in `Request` [ 691s] [ 691s] error[E0599]: no method named `validate_with_args` found for reference `&change_password::FormModel` in the current scope [ 691s] --> app/src/components/change_password.rs:35:17 [ 691s] | [ 691s] 35 | #[derive(Model, Validate, PartialEq, Eq, Clone, Default)] [ 691s] | ^^^^^^^^ [ 691s] | [ 691s] = note: this error originates in the derive macro `Validate` (in Nightly builds, run with -Z macro-backtrace for more info) [ 691s] [ 691s] error[E0599]: no method named `validate_length` found for struct `std::string::String` in the current scope [ 691s] --> app/src/components/change_password.rs:35:17 [ 691s] | [ 691s] 35 | #[derive(Model, Validate, PartialEq, Eq, Clone, Default)] [ 691s] | ^^^^^^^^ method not found in `String` [ 691s] | [ 691s] = note: this error originates in the derive macro `Validate` (in Nightly builds, run with -Z macro-backtrace for more info) [ 691s] [ 691s] error[E0599]: no method named `validate_with_args` found for reference `&CreateGroupModel` in the current scope [ 691s] --> app/src/components/create_group.rs:30:17 [ 691s] | [ 691s] 30 | #[derive(Model, Validate, PartialEq, Eq, Clone, Default)] [ 691s] | ^^^^^^^^ [ 691s] | [ 691s] = note: this error originates in the derive macro `Validate` (in Nightly builds, run with -Z macro-backtrace for more info) [ 691s] [ 691s] error[E0599]: no method named `validate_length` found for struct `std::string::String` in the current scope [ 691s] --> app/src/components/create_group.rs:30:17 [ 691s] | [ 691s] 30 | #[derive(Model, Validate, PartialEq, Eq, Clone, Default)] [ 691s] | ^^^^^^^^ method not found in `String` [ 691s] | [ 691s] = note: this error originates in the derive macro `Validate` (in Nightly builds, run with -Z macro-backtrace for more info) [ 691s] [ 691s] error[E0599]: no method named `validate_with_args` found for reference `&CreateUserModel` in the current scope [ 691s] --> app/src/components/create_user.rs:69:17 [ 691s] | [ 691s] 69 | #[derive(Model, Validate, PartialEq, Eq, Clone, Default)] [ 691s] | ^^^^^^^^ [ 691s] | [ 691s] = note: this error originates in the derive macro `Validate` (in Nightly builds, run with -Z macro-backtrace for more info) [ 691s] [ 691s] error[E0599]: no method named `validate_length` found for struct `std::string::String` in the current scope [ 691s] --> app/src/components/create_user.rs:69:17 [ 691s] | [ 691s] 69 | #[derive(Model, Validate, PartialEq, Eq, Clone, Default)] [ 691s] | ^^^^^^^^ method not found in `String` [ 691s] | [ 691s] = note: this error originates in the derive macro `Validate` (in Nightly builds, run with -Z macro-backtrace for more info) [ 691s] [ 691s] warning: use of deprecated associated function `chrono::DateTime::<Tz>::from_utc`: Use TimeZone::from_utc_datetime() or DateTime::from_naive_utc_and_offset instead [ 691s] --> app/src/components/form/date_input.rs:43:48 [ 691s] | [ 691s] 43 | ... .map(|x| DateTime::from_utc(x, Utc)) [ 691s] | ^^^^^^^^ [ 691s] | [ 691s] = note: `#[warn(deprecated)]` on by default [ 691s] [ 691s] error[E0599]: no method named `validate_with_args` found for reference `&components::login::FormModel` in the current scope [ 691s] --> app/src/components/login.rs:26:17 [ 691s] | [ 691s] 26 | #[derive(Model, Validate, PartialEq, Eq, Clone, Default)] [ 691s] | ^^^^^^^^ [ 691s] | [ 691s] = note: this error originates in the derive macro `Validate` (in Nightly builds, run with -Z macro-backtrace for more info) [ 691s] [ 691s] error[E0599]: no method named `validate_length` found for struct `std::string::String` in the current scope [ 691s] --> app/src/components/login.rs:26:17 [ 691s] | [ 691s] 26 | #[derive(Model, Validate, PartialEq, Eq, Clone, Default)] [ 691s] | ^^^^^^^^ method not found in `String` [ 691s] | [ 691s] = note: this error originates in the derive macro `Validate` (in Nightly builds, run with -Z macro-backtrace for more info) [ 691s] [ 691s] error[E0599]: no method named `validate_with_args` found for reference `&reset_password_step1::FormModel` in the current scope [ 691s] --> app/src/components/reset_password_step1.rs:21:17 [ 691s] | [ 691s] 21 | #[derive(Model, Validate, PartialEq, Eq, Clone, Default)] [ 691s] | ^^^^^^^^ [ 691s] | [ 691s] = note: this error originates in the derive macro `Validate` (in Nightly builds, run with -Z macro-backtrace for more info) [ 691s] [ 691s] error[E0599]: no method named `validate_length` found for struct `std::string::String` in the current scope [ 691s] --> app/src/components/reset_password_step1.rs:21:17 [ 691s] | [ 691s] 21 | #[derive(Model, Validate, PartialEq, Eq, Clone, Default)] [ 691s] | ^^^^^^^^ method not found in `String` [ 691s] | [ 691s] = note: this error originates in the derive macro `Validate` (in Nightly builds, run with -Z macro-backtrace for more info) [ 691s] [ 691s] error[E0599]: no method named `validate_with_args` found for reference `&reset_password_step2::FormModel` in the current scope [ 691s] --> app/src/components/reset_password_step2.rs:23:17 [ 691s] | [ 691s] 23 | #[derive(Model, Validate, PartialEq, Eq, Clone, Default)] [ 691s] | ^^^^^^^^ [ 691s] | [ 691s] = note: this error originates in the derive macro `Validate` (in Nightly builds, run with -Z macro-backtrace for more info) [ 691s] [ 691s] error[E0599]: no method named `validate_length` found for struct `std::string::String` in the current scope [ 691s] --> app/src/components/reset_password_step2.rs:23:17 [ 691s] | [ 691s] 23 | #[derive(Model, Validate, PartialEq, Eq, Clone, Default)] [ 691s] | ^^^^^^^^ method not found in `String` [ 691s] | [ 691s] = note: this error originates in the derive macro `Validate` (in Nightly builds, run with -Z macro-backtrace for more info) [ 691s] [ 692s] Some errors have detailed explanations: E0046, E0277, E0407, E0432, E0599. [ 692s] For more information about an error, try `rustc --explain E0046`. [ 692s] warning: `lldap_app` (lib) generated 3 warnings [ 692s] error: could not compile `lldap_app` (lib) due to 35 previous errors; 3 warnings emitted [ 693s] Error: Compiling your crate to WebAssembly failed [ 693s] Caused by: Compiling your crate to WebAssembly failed [ 693s] Caused by: failed to execute `cargo build`: exited with exit status: 101 [ 693s] full command: cd "/home/abuild/rpmbuild/BUILD/lldap-0.5.0.1728338628.a6eac55/app" && "cargo" "build" "--lib" "--release" "--target" "wasm32-unknown-unknown" "--offline" [ 693s] error: Bad exit status from /var/tmp/rpm-tmp.EJqjZ0 (%build) ```
kerem closed this issue 2026-02-27 08:16:53 +03:00
Author
Owner

@nitnelave commented on GitHub (Oct 16, 2024):

From a first investigation (build is still running), it comes from updating all the dependencies. Instead, you should use the versions described in the Cargo.lock file (precise versions that are known to be good) by passing --locked after the --offline.

<!-- gh-comment-id:2417988216 --> @nitnelave commented on GitHub (Oct 16, 2024): From a first investigation (build is still running), it comes from updating all the dependencies. Instead, you should use the versions described in the `Cargo.lock` file (precise versions that are known to be good) by passing `--locked` after the `--offline`.
Author
Owner

@nitnelave commented on GitHub (Oct 16, 2024):

Alright, I sent a PR that updates the dependencies and fixes the breaks, but still, for a reproducible package, you should use the --locked flag.

<!-- gh-comment-id:2418020614 --> @nitnelave commented on GitHub (Oct 16, 2024): Alright, I sent a PR that updates the dependencies and fixes the breaks, but still, for a reproducible package, you should use the `--locked` flag.
Author
Owner

@kastl-ars commented on GitHub (Oct 17, 2024):

Thanks Valentin! I am one step forward, no I get an error due to wasm-bindgen missing.

[  768s] Error: Not able to find or install a local wasm-bindgen.

I'll try to package that, hope that helps.

<!-- gh-comment-id:2419063470 --> @kastl-ars commented on GitHub (Oct 17, 2024): Thanks Valentin! I am one step forward, no I get an error due to wasm-bindgen missing. ``` [ 768s] Error: Not able to find or install a local wasm-bindgen. ``` I'll try to package that, hope that helps.
Author
Owner

@nitnelave commented on GitHub (Oct 17, 2024):

@kastl-ars did you see https://github.com/rustwasm/wasm-pack/issues/1138 ?

<!-- gh-comment-id:2419076953 --> @nitnelave commented on GitHub (Oct 17, 2024): @kastl-ars did you see https://github.com/rustwasm/wasm-pack/issues/1138 ?
Author
Owner

@kastl-ars commented on GitHub (Oct 17, 2024):

@kastl-ars did you see rustwasm/wasm-pack#1138 ?

No, but thanks for the hint. Setting export RUST_LOG=debug gives the following:

[   46s]    Compiling lldap_app v0.5.1-alpha (/home/abuild/rpmbuild/BUILD/lldap-0.5.0.1729117061.abfe2f3/app)
[   75s]     Finished `release` profile [optimized] target(s) in 1m 10s
[   75s] [INFO  wasm_pack::command::build] wasm built at "/home/abuild/rpmbuild/BUILD/lldap-0.5.0.1729117061.abfe2f3/app/target/wasm32-unknown-unknown/release".
[   75s] [INFO  wasm_pack::command::build] Creating a pkg directory...
[   75s] [INFO  wasm_pack::command::build] Created a pkg directory at "/home/abuild/rpmbuild/BUILD/lldap-0.5.0.1729117061.abfe2f3/app".
[   75s] [INFO  wasm_pack::command::build] Identifying wasm-bindgen dependency...
[   75s] [INFO  wasm_pack::command::build] Installing wasm-bindgen-cli...
[   75s] [INFO]: ⬇   Installing wasm-bindgen...
[   75s] [WARN  wasm_pack::install] could not download pre-built `wasm-bindgen`: wasm-bindgen v0.2.95 is not installed!. Falling back to `cargo install`.
[   75s] [DEBUG wasm_pack::install] Attempting to use a `cargo install`ed version of `wasm-bindgen=0.2.95`
[   75s] [INFO  wasm_pack::command::build] Installing wasm-bindgen-cli was successful.
[   75s] [INFO  wasm_pack::command::build] Building the wasm bindings...
[   75s] Error: Not able to find or install a local wasm-bindgen.
[   75s] Caused by: Not able to find or install a local wasm-bindgen.
<!-- gh-comment-id:2419203586 --> @kastl-ars commented on GitHub (Oct 17, 2024): > @kastl-ars did you see [rustwasm/wasm-pack#1138](https://github.com/rustwasm/wasm-pack/issues/1138) ? No, but thanks for the hint. Setting `export RUST_LOG=debug` gives the following: ``` [ 46s] Compiling lldap_app v0.5.1-alpha (/home/abuild/rpmbuild/BUILD/lldap-0.5.0.1729117061.abfe2f3/app) [ 75s] Finished `release` profile [optimized] target(s) in 1m 10s [ 75s] [INFO wasm_pack::command::build] wasm built at "/home/abuild/rpmbuild/BUILD/lldap-0.5.0.1729117061.abfe2f3/app/target/wasm32-unknown-unknown/release". [ 75s] [INFO wasm_pack::command::build] Creating a pkg directory... [ 75s] [INFO wasm_pack::command::build] Created a pkg directory at "/home/abuild/rpmbuild/BUILD/lldap-0.5.0.1729117061.abfe2f3/app". [ 75s] [INFO wasm_pack::command::build] Identifying wasm-bindgen dependency... [ 75s] [INFO wasm_pack::command::build] Installing wasm-bindgen-cli... [ 75s] [INFO]: ⬇ Installing wasm-bindgen... [ 75s] [WARN wasm_pack::install] could not download pre-built `wasm-bindgen`: wasm-bindgen v0.2.95 is not installed!. Falling back to `cargo install`. [ 75s] [DEBUG wasm_pack::install] Attempting to use a `cargo install`ed version of `wasm-bindgen=0.2.95` [ 75s] [INFO wasm_pack::command::build] Installing wasm-bindgen-cli was successful. [ 75s] [INFO wasm_pack::command::build] Building the wasm bindings... [ 75s] Error: Not able to find or install a local wasm-bindgen. [ 75s] Caused by: Not able to find or install a local wasm-bindgen. ```
Author
Owner

@nitnelave commented on GitHub (Oct 17, 2024):

And if you cargo install -f wasm-bindgen
?

<!-- gh-comment-id:2419295788 --> @nitnelave commented on GitHub (Oct 17, 2024): And if you `cargo install -f wasm-bindgen` ?
Author
Owner

@kastl-ars commented on GitHub (Oct 17, 2024):

And if you cargo install -f wasm-bindgen ?

Won't work as the build happens offline, hence I have to vendor everything upfront (or install it from the distribution).

<!-- gh-comment-id:2419309285 --> @kastl-ars commented on GitHub (Oct 17, 2024): > And if you `cargo install -f wasm-bindgen` ? Won't work as the build happens offline, hence I have to vendor everything upfront (or install it from the distribution).
Author
Owner

@nitnelave commented on GitHub (Oct 17, 2024):

I think you'll need to install/vendor that. Not sure how, though, I'm not used to offline builds.

<!-- gh-comment-id:2419405979 --> @nitnelave commented on GitHub (Oct 17, 2024): I think you'll need to install/vendor that. Not sure how, though, I'm not used to offline builds.
Author
Owner

@kastl-ars commented on GitHub (Oct 17, 2024):

That is what I am currently trying to do...

<!-- gh-comment-id:2419447985 --> @kastl-ars commented on GitHub (Oct 17, 2024): That is what I am currently trying to do...
Author
Owner

@kastl-ars commented on GitHub (Oct 17, 2024):

I have packaged wasm-bindgen (the CLI) for openSUSE, installing it in the VM where the build happens leads to a successful build!

Thanks for your help, @nitnelave !

<!-- gh-comment-id:2419543789 --> @kastl-ars commented on GitHub (Oct 17, 2024): I have packaged wasm-bindgen (the CLI) for openSUSE, installing it in the VM where the build happens leads to a successful build! Thanks for your help, @nitnelave !
Sign in to join this conversation.
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
starred/lldap-lldap#365
No description provided.