-
Notifications
You must be signed in to change notification settings - Fork 799
Compile with stable Rust #2260
Copy link
Copy link
Closed
Labels
A-securityArea: Security issuesArea: Security issuesC-housekeepingCategory: Refactoring, cleanups, code qualityCategory: Refactoring, cleanups, code quality
Milestone
Description
Activity
Metadata
Metadata
Assignees
Labels
A-securityArea: Security issuesArea: Security issuesC-housekeepingCategory: Refactoring, cleanups, code qualityCategory: Refactoring, cleanups, code quality
Currently, nearcore can only be compiled with nightly Rust compiler due to the following unstable features:
wasmer-singlepass-backend requires
proc_macro_hygiene** It seems that Rust 1.44 can have the necessary parts of it stabilized! Stabilize fn-like proc macros in expression, pattern and statement positions rust-lang/rust#68717
dynasm [dependency of wasmer-singlepass-backend] requires - 0.7.0 release is going to be compilable on stable Rust 1.45:
proc_macro_diagnostic(can be easily conditionaly disabled on stable)proc_macro_span(it seems that it can be mocked on stable)It seems that we can have nearcore compiled on stable Rust once
proc_macro_hygieneis stabilized (mid June?) anddynasmhas unstable features under feature flags./cc @nearmax @bowenwang1996