Skip to content
This repository was archived by the owner on May 3, 2026. It is now read-only.
This repository was archived by the owner on May 3, 2026. It is now read-only.

Build fails on armv7: error[E0433]: failed to resolve: use of undeclared crate or module alloc #54

Description

@yurivict
[smartstring 1.0.1]   |
[smartstring 1.0.1]   = note: the build environment is likely misconfigured
[smartstring 1.0.1] 
[smartstring 1.0.1] error[E0433]: failed to resolve: use of undeclared crate or module `alloc`
[smartstring 1.0.1]  --> <anon>:1:18
[smartstring 1.0.1]   |
[smartstring 1.0.1] 1 | pub trait Probe: alloc::alloc::Allocator + Sized {}
[smartstring 1.0.1]   |                  ^^^^^ use of undeclared crate or module `alloc`
[smartstring 1.0.1]   |
[smartstring 1.0.1]   = help: add `extern crate alloc` to use the `alloc` crate
[smartstring 1.0.1] help: consider importing this module
[smartstring 1.0.1]   |
[smartstring 1.0.1] 1 + use std::alloc;
[smartstring 1.0.1]   |
[smartstring 1.0.1] help: if you import `alloc`, refer to it directly
[smartstring 1.0.1]   |
[smartstring 1.0.1] 1 - pub trait Probe: alloc::alloc::Allocator + Sized {}
[smartstring 1.0.1] 1 + pub trait Probe: alloc::Allocator + Sized {}
[smartstring 1.0.1]   |
[smartstring 1.0.1] 
[smartstring 1.0.1] error: aborting due to 1 previous error

Encountered during build of rio-terminal-emulator-0.2.1
FreeBSD 14.1

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions