From 83d67e5fa4587c136787bc23cc68d2a0ad158248 Mon Sep 17 00:00:00 2001 From: Daniel Shiposha Date: Mon, 10 Jul 2023 11:26:48 +0000 Subject: [PATCH] fix: Rust Analyzer for common mod (#966) * fix: add common link * fix: add windows note * fix: rename common-link to runtime_common --- --- a/README.md +++ b/README.md @@ -37,6 +37,12 @@ Building Unique chain requires special versions of Rust and toolchain. We don't use the most recent versions of everything so that we can keep the builds stable. +*Windows note: We do not provide support for Windows systems and don't test the Unique chain on them. +Nonetheless, the Unique chain node might work on Windows. To build it on Windows, you need to enable symlink support in Git:* +``` +git config --global core.symlinks true +``` + 1. Install Rust: ```bash --- a/runtime/opal/src/lib.rs +++ b/runtime/opal/src/lib.rs @@ -36,7 +36,6 @@ use ::xcm::latest::NetworkId; -#[path = "../../common/mod.rs"] mod runtime_common; pub mod xcm_barrier; --- /dev/null +++ b/runtime/opal/src/runtime_common @@ -0,0 +1 @@ +../../common/ \ No newline at end of file --- a/runtime/quartz/src/lib.rs +++ b/runtime/quartz/src/lib.rs @@ -36,7 +36,6 @@ use ::xcm::latest::NetworkId; -#[path = "../../common/mod.rs"] mod runtime_common; pub mod xcm_barrier; --- /dev/null +++ b/runtime/quartz/src/runtime_common @@ -0,0 +1 @@ +../../common/ \ No newline at end of file --- a/runtime/unique/src/lib.rs +++ b/runtime/unique/src/lib.rs @@ -36,7 +36,6 @@ use ::xcm::latest::NetworkId; -#[path = "../../common/mod.rs"] mod runtime_common; pub mod xcm_barrier; --- /dev/null +++ b/runtime/unique/src/runtime_common @@ -0,0 +1 @@ +../../common/ \ No newline at end of file -- gitstuff