You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Is this a backend issue? Use the lemmy-ui repo for UI / frontend issues.
Summary
I've been following the advice on Local Development to install lemmy as a local instance.
When trying to run cargo check it hits an error.
The Rust issue log for lazy_cell recommends installing rustup but it requires rust to be uninstalled first - so I haven't done that yet.
###Short version cargo check
Checking lemmy_utils v0.19.6-beta.7 (/home/USER/lemmy/crates/utils)
error[E0658]: use of unstable library feature 'lazy_cell'
cargo check
Checking lemmy_utils v0.19.6-beta.7 (/home/USER/lemmy/crates/utils)
error[E0658]: use of unstable library feature 'lazy_cell'
--> crates/utils/src/rate_limit/rate_limiter.rs:6:3
|
6 | sync::LazyLock,
| ^^^^^^^^^^^^^^
|
= note: see issue #109736 <https://github.com/rust-lang/rust/issues/109736> for more information
error[E0658]: use of unstable library feature 'lazy_cell'
--> crates/utils/src/rate_limit/rate_limiter.rs:12:20
|
12 | static START_TIME: LazyLock<Instant> = LazyLock::new(Instant::now);
| ^^^^^^^^^^^^^^^^^
|
= note: see issue #109736 <https://github.com/rust-lang/rust/issues/109736> for more information
error[E0658]: use of unstable library feature 'lazy_cell'
--> crates/utils/src/rate_limit/rate_limiter.rs:12:40
|
12 | static START_TIME: LazyLock<Instant> = LazyLock::new(Instant::now);
| ^^^^^^^^
|
= note: see issue #109736 <https://github.com/rust-lang/rust/issues/109736> for more information
error[E0658]: use of unstable library feature 'lazy_cell'
--> crates/utils/src/settings/mod.rs:5:31
|
5 | use std::{env, fs, io::Error, sync::LazyLock};
| ^^^^^^^^^^^^^^
|
= note: see issue #109736 <https://github.com/rust-lang/rust/issues/109736> for more information
error[E0658]: use of unstable library feature 'lazy_cell'
--> crates/utils/src/settings/mod.rs:14:22
|
14 | pub static SETTINGS: LazyLock<Settings> = LazyLock::new(|| {
| ^^^^^^^^^^^^^^^^^^
|
= note: see issue #109736 <https://github.com/rust-lang/rust/issues/109736> for more information
error[E0658]: use of unstable library feature 'lazy_cell'
--> crates/utils/src/settings/mod.rs:14:43
|
14 | pub static SETTINGS: LazyLock<Settings> = LazyLock::new(|| {
| ^^^^^^^^
|
= note: see issue #109736 <https://github.com/rust-lang/rust/issues/109736> for more information
error[E0658]: use of unstable library feature 'lazy_cell'
--> crates/utils/src/settings/mod.rs:26:25
|
26 | static WEBFINGER_REGEX: LazyLock<Regex> = LazyLock::new(|| {
| ^^^^^^^^^^^^^^^
|
= note: see issue #109736 <https://github.com/rust-lang/rust/issues/109736> for more information
error[E0658]: use of unstable library feature 'lazy_cell'
--> crates/utils/src/settings/mod.rs:26:43
|
26 | static WEBFINGER_REGEX: LazyLock<Regex> = LazyLock::new(|| {
| ^^^^^^^^
|
= note: see issue #109736 <https://github.com/rust-lang/rust/issues/109736> for more information
error[E0658]: use of unstable library feature 'lazy_cell'
--> crates/utils/src/utils/markdown/mod.rs:4:5
|
4 | use std::sync::LazyLock;
| ^^^^^^^^^^^^^^^^^^^
|
= note: see issue #109736 <https://github.com/rust-lang/rust/issues/109736> for more information
error[E0658]: use of unstable library feature 'lazy_cell'
--> crates/utils/src/utils/markdown/mod.rs:9:25
|
9 | static MARKDOWN_PARSER: LazyLock<MarkdownIt> = LazyLock::new(|| {
| ^^^^^^^^^^^^^^^^^^^^
|
= note: see issue #109736 <https://github.com/rust-lang/rust/issues/109736> for more information
error[E0658]: use of unstable library feature 'lazy_cell'
--> crates/utils/src/utils/markdown/mod.rs:9:48
|
9 | static MARKDOWN_PARSER: LazyLock<MarkdownIt> = LazyLock::new(|| {
| ^^^^^^^^
|
= note: see issue #109736 <https://github.com/rust-lang/rust/issues/109736> for more information
error[E0658]: use of unstable library feature 'lazy_cell'
--> crates/utils/src/utils/mention.rs:3:5
|
3 | use std::sync::LazyLock;
| ^^^^^^^^^^^^^^^^^^^
|
= note: see issue #109736 <https://github.com/rust-lang/rust/issues/109736> for more information
error[E0658]: use of unstable library feature 'lazy_cell'
--> crates/utils/src/utils/mention.rs:5:24
|
5 | static MENTIONS_REGEX: LazyLock<Regex> = LazyLock::new(|| {
| ^^^^^^^^^^^^^^^
|
= note: see issue #109736 <https://github.com/rust-lang/rust/issues/109736> for more information
error[E0658]: use of unstable library feature 'lazy_cell'
--> crates/utils/src/utils/mention.rs:5:42
|
5 | static MENTIONS_REGEX: LazyLock<Regex> = LazyLock::new(|| {
| ^^^^^^^^
|
= note: see issue #109736 <https://github.com/rust-lang/rust/issues/109736> for more information
error[E0658]: use of unstable library feature 'lazy_cell'
--> crates/utils/src/utils/validation.rs:5:5
|
5 | use std::sync::LazyLock;
| ^^^^^^^^^^^^^^^^^^^
|
= note: see issue #109736 <https://github.com/rust-lang/rust/issues/109736> for more information
error[E0658]: use of unstable library feature 'lazy_cell'
--> crates/utils/src/utils/validation.rs:9:31
|
9 | static VALID_MATRIX_ID_REGEX: LazyLock<Regex> = LazyLock::new(|| {
| ^^^^^^^^^^^^^^^
|
= note: see issue #109736 <https://github.com/rust-lang/rust/issues/109736> for more information
error[E0658]: use of unstable library feature 'lazy_cell'
--> crates/utils/src/utils/validation.rs:9:49
|
9 | static VALID_MATRIX_ID_REGEX: LazyLock<Regex> = LazyLock::new(|| {
| ^^^^^^^^
|
= note: see issue #109736 <https://github.com/rust-lang/rust/issues/109736> for more information
error[E0658]: use of unstable library feature 'lazy_cell'
--> crates/utils/src/utils/validation.rs:14:21
|
14 | static URL_CLEANER: LazyLock<UrlCleaner> =
| ^^^^^^^^^^^^^^^^^^^^
|
= note: see issue #109736 <https://github.com/rust-lang/rust/issues/109736> for more information
error[E0658]: use of unstable library feature 'lazy_cell'
--> crates/utils/src/utils/validation.rs:15:3
|
15 | LazyLock::new(|| UrlCleaner::from_embedded_rules().expect("compile cle...
| ^^^^^^^^
|
= note: see issue #109736 <https://github.com/rust-lang/rust/issues/109736> for more information
error[E0658]: use of unstable library feature 'lazy_cell'
--> crates/utils/src/utils/validation.rs:91:34
|
91 | static VALID_ACTOR_NAME_REGEX: LazyLock<Regex> = LazyLock::new(|| {
| ^^^^^^^^^^^^^^^
|
= note: see issue #109736 <https://github.com/rust-lang/rust/issues/109736> for more information
error[E0658]: use of unstable library feature 'lazy_cell'
--> crates/utils/src/utils/validation.rs:91:52
|
91 | static VALID_ACTOR_NAME_REGEX: LazyLock<Regex> = LazyLock::new(|| {
| ^^^^^^^^
|
= note: see issue #109736 <https://github.com/rust-lang/rust/issues/109736> for more information
error[E0658]: use of unstable library feature 'lazy_cell'
--> crates/utils/src/rate_limit/rate_limiter.rs:12:40
|
12 | static START_TIME: LazyLock<Instant> = LazyLock::new(Instant::now);
| ^^^^^^^^^^^^^
|
= note: see issue #109736 <https://github.com/rust-lang/rust/issues/109736> for more information
error[E0658]: use of unstable library feature 'lazy_cell'
--> crates/utils/src/settings/mod.rs:14:43
|
14 | pub static SETTINGS: LazyLock<Settings> = LazyLock::new(|| {
| ^^^^^^^^^^^^^
|
= note: see issue #109736 <https://github.com/rust-lang/rust/issues/109736> for more information
error[E0658]: use of unstable library feature 'lazy_cell'
--> crates/utils/src/settings/mod.rs:26:43
|
26 | static WEBFINGER_REGEX: LazyLock<Regex> = LazyLock::new(|| {
| ^^^^^^^^^^^^^
|
= note: see issue #109736 <https://github.com/rust-lang/rust/issues/109736> for more information
error[E0658]: use of unstable library feature 'lazy_cell'
--> crates/utils/src/utils/markdown/mod.rs:9:48
|
9 | static MARKDOWN_PARSER: LazyLock<MarkdownIt> = LazyLock::new(|| {
| ^^^^^^^^^^^^^
|
= note: see issue #109736 <https://github.com/rust-lang/rust/issues/109736> for more information
error[E0658]: use of unstable library feature 'lazy_cell'
--> crates/utils/src/utils/mention.rs:5:42
|
5 | static MENTIONS_REGEX: LazyLock<Regex> = LazyLock::new(|| {
| ^^^^^^^^^^^^^
|
= note: see issue #109736 <https://github.com/rust-lang/rust/issues/109736> for more information
error[E0658]: use of unstable library feature 'lazy_cell'
--> crates/utils/src/utils/validation.rs:9:49
|
9 | static VALID_MATRIX_ID_REGEX: LazyLock<Regex> = LazyLock::new(|| {
| ^^^^^^^^^^^^^
|
= note: see issue #109736 <https://github.com/rust-lang/rust/issues/109736> for more information
error[E0658]: use of unstable library feature 'lazy_cell'
--> crates/utils/src/utils/validation.rs:15:3
|
15 | LazyLock::new(|| UrlCleaner::from_embedded_rules().expect("compile cle...
| ^^^^^^^^^^^^^
|
= note: see issue #109736 <https://github.com/rust-lang/rust/issues/109736> for more information
error[E0658]: use of unstable library feature 'lazy_cell'
--> crates/utils/src/utils/validation.rs:91:52
|
91 | static VALID_ACTOR_NAME_REGEX: LazyLock<Regex> = LazyLock::new(|| {
| ^^^^^^^^^^^^^
|
= note: see issue #109736 <https://github.com/rust-lang/rust/issues/109736> for more information
For more information about this error, try `rustc --explain E0658`.
error: could not compile `lemmy_utils` (lib) due to 29 previous errors
Requirements
Summary
I've been following the advice on Local Development to install lemmy as a local instance.
When trying to run
cargo check
it hits an error.The Rust issue log for lazy_cell recommends installing rustup but it requires rust to be uninstalled first - so I haven't done that yet.
###Short version
cargo check
Full error is below.
Steps to Reproduce
Technical Details
Full Error Message
Operating System Details
cat /etc/os-release
lsb_release -a
Version
current from git (displayed in the footer of what?)
Lemmy Instance URL
local copy so no URL
The text was updated successfully, but these errors were encountered: