Skip to content

Windows build failing #38

Description

@jothiprasath-cdmx

When i ran "bun run tauri build" for windows build. I am getting the below error.

✓ 4583 modules transformed.
dist/index.html                             0.50 kB │ gzip:     0.32 kB
dist/assets/asterisk-logo-B09BSk2Z.png    100.30 kB
dist/assets/claudia-nfo-CGCcrpzI.ogg      314.64 kB
dist/assets/index-BjLVcoqb.css            111.03 kB │ gzip:    18.54 kB
dist/assets/index-Du4m1NHj.js           3,125.11 kB │ gzip: 1,045.13 kB

(!) Some chunks are larger than 500 kB after minification. Consider:
- Using dynamic import() to code-split the application
- Use build.rollupOptions.output.manualChunks to improve chunking: https://rollupjs.org/configuration-options/#output-manualchunks
- Adjust chunk size limit for this warning via build.chunkSizeWarningLimit.
✓ built in 7.72s
   Compiling gaol v0.2.1
error[E0432]: unresolved imports `platform::process`, `platform::process`
  --> /home/jothi.prasath/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/gaol-0.2.1/sandbox.rs:13:15
   |
13 | use platform::process::{self, Process};
   |               ^^^^^^^   ^^^^ no `process` in `platform`
   |               |
   |               could not find `process` in `platform`
   |
   = help: consider importing one of these modules instead:
           std::os::windows::process
           std::process

error[E0433]: failed to resolve: could not find `unix` in `os`
  --> /home/jothi.prasath/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/gaol-0.2.1/sandbox.rs:50:22
   |
50 |         use std::os::unix::ffi::OsStrExt;
   |                      ^^^^ could not find `unix` in `os`
   |
note: found an item that was configured out
  --> /rustc/17067e9ac6d7ecb70e50f92c1944e545188d2359\library\std\src\os\mod.rs:36:9
note: the item is gated here
  --> /rustc/17067e9ac6d7ecb70e50f92c1944e545188d2359\library\std\src\os\mod.rs:28:1
note: found an item that was configured out
  --> /rustc/17067e9ac6d7ecb70e50f92c1944e545188d2359\library\std\src\os\mod.rs:85:9
note: the item is gated here
  --> /rustc/17067e9ac6d7ecb70e50f92c1944e545188d2359\library\std\src\os\mod.rs:84:1

error[E0432]: unresolved imports `platform::ChildSandbox`, `platform::Sandbox`
  --> /home/jothi.prasath/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/gaol-0.2.1/sandbox.rs:22:20
   |
22 | pub use platform::{ChildSandbox, Sandbox};
   |                    ^^^^^^^^^^^^  ^^^^^^^ no `Sandbox` in `platform`
   |                    |
   |                    no `ChildSandbox` in `platform`
   |
note: found an item that was configured out
  --> /home/jothi.prasath/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/gaol-0.2.1/lib.rs:21:31
   |
21 |     pub use platform::linux::{ChildSandbox, Operation, Sandbox};
   |                               ^^^^^^^^^^^^
note: the item is gated here
  --> /home/jothi.prasath/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/gaol-0.2.1/lib.rs:20:5
   |
20 |     #[cfg(any(target_os="android", target_os="linux"))]
   |     ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
note: found an item that was configured out
  --> /home/jothi.prasath/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/gaol-0.2.1/lib.rs:23:31
   |
23 |     pub use platform::macos::{ChildSandbox, Operation, Sandbox};
   |                               ^^^^^^^^^^^^
note: the item is gated behind the `macos` feature
  --> /home/jothi.prasath/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/gaol-0.2.1/lib.rs:22:11
   |
22 |     #[cfg(target_os="macos")]
   |           ^^^^^^^^^^^^^^^^^
note: found an item that was configured out
  --> /home/jothi.prasath/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/gaol-0.2.1/lib.rs:25:33
   |
25 |     pub use platform::freebsd::{ChildSandbox, Operation, Sandbox};
   |                                 ^^^^^^^^^^^^
note: the item is gated behind the `freebsd` feature
  --> /home/jothi.prasath/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/gaol-0.2.1/lib.rs:24:11
   |
24 |     #[cfg(target_os="freebsd")]
   |           ^^^^^^^^^^^^^^^^^^^
note: found an item that was configured out
  --> /home/jothi.prasath/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/gaol-0.2.1/lib.rs:21:56
   |
21 |     pub use platform::linux::{ChildSandbox, Operation, Sandbox};
   |                                                        ^^^^^^^
note: the item is gated here
  --> /home/jothi.prasath/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/gaol-0.2.1/lib.rs:20:5
   |
20 |     #[cfg(any(target_os="android", target_os="linux"))]
   |     ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
note: found an item that was configured out
  --> /home/jothi.prasath/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/gaol-0.2.1/lib.rs:23:56
   |
23 |     pub use platform::macos::{ChildSandbox, Operation, Sandbox};
   |                                                        ^^^^^^^
note: the item is gated behind the `macos` feature
  --> /home/jothi.prasath/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/gaol-0.2.1/lib.rs:22:11
   |
22 |     #[cfg(target_os="macos")]
   |           ^^^^^^^^^^^^^^^^^
note: found an item that was configured out
  --> /home/jothi.prasath/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/gaol-0.2.1/lib.rs:25:58
   |
25 |     pub use platform::freebsd::{ChildSandbox, Operation, Sandbox};
   |                                                          ^^^^^^^
note: the item is gated behind the `freebsd` feature
  --> /home/jothi.prasath/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/gaol-0.2.1/lib.rs:24:11
   |
24 |     #[cfg(target_os="freebsd")]
   |           ^^^^^^^^^^^^^^^^^^^

error[E0412]: cannot find type `Operation` in module `platform`
  --> /home/jothi.prasath/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/gaol-0.2.1/profile.rs:99:32
   |
99 |     PlatformSpecific(platform::Operation),
   |                                ^^^^^^^^^ not found in `platform`
   |
note: found an item that was configured out
  --> /home/jothi.prasath/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/gaol-0.2.1/lib.rs:21:45
   |
21 |     pub use platform::linux::{ChildSandbox, Operation, Sandbox};
   |                                             ^^^^^^^^^
note: the item is gated here
  --> /home/jothi.prasath/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/gaol-0.2.1/lib.rs:20:5
   |
20 |     #[cfg(any(target_os="android", target_os="linux"))]
   |     ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
note: found an item that was configured out
  --> /home/jothi.prasath/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/gaol-0.2.1/lib.rs:23:45
   |
23 |     pub use platform::macos::{ChildSandbox, Operation, Sandbox};
   |                                             ^^^^^^^^^
note: the item is gated behind the `macos` feature
  --> /home/jothi.prasath/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/gaol-0.2.1/lib.rs:22:11
   |
22 |     #[cfg(target_os="macos")]
   |           ^^^^^^^^^^^^^^^^^
note: found an item that was configured out
  --> /home/jothi.prasath/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/gaol-0.2.1/lib.rs:25:47
   |
25 |     pub use platform::freebsd::{ChildSandbox, Operation, Sandbox};
   |                                               ^^^^^^^^^
note: the item is gated behind the `freebsd` feature
  --> /home/jothi.prasath/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/gaol-0.2.1/lib.rs:24:11
   |
24 |     #[cfg(target_os="freebsd")]
   |           ^^^^^^^^^^^^^^^^^^^

error[E0599]: no method named `support` found for reference `&Operation` in the current scope
   --> /home/jothi.prasath/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/gaol-0.2.1/profile.rs:132:29
    |
132 |             match operation.support() {
    |                             ^^^^^^^ method not found in `&Operation`
    |
    = help: items from traits can only be used if the trait is implemented and in scope
note: `OperationSupport` defines an item `support`, perhaps you need to implement it
   --> /home/jothi.prasath/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/gaol-0.2.1/profile.rs:170:1
    |
170 | pub trait OperationSupport {
    | ^^^^^^^^^^^^^^^^^^^^^^^^^^

error[E0599]: no method named `as_bytes` found for reference `&OsStr` in the current scope
  --> /home/jothi.prasath/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/gaol-0.2.1/sandbox.rs:51:14
   |
51 |         path.as_bytes()
   |              ^^^^^^^^
   |
help: there is a method `as_encoded_bytes` with a similar name
   |
51 |         path.as_encoded_bytes()
   |                 ++++++++

Some errors have detailed explanations: E0412, E0432, E0433, E0599.
For more information about an error, try `rustc --explain E0412`.
error: could not compile `gaol` (lib) due to 6 previous errors
failed to build app: failed to build app
       Error failed to build app: failed to build app
error: script "tauri" exited with code 1

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Fields

    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions