When encountering such problems, how to resolve them
warning: some crates are on edition 2021 which defaults to resolver = "2", but virtual workspaces default to resolver = "1"
note: to keep the current resolver, specify workspace.resolver = "1" in the workspace root's manifest
note: to use the edition 2021 resolver, specify workspace.resolver = "2" in the workspace root's manifest
This is a warning message in the Rust programming language, which is usually encountered when using Rust projects. This warning message means that some crates (dependencies in Rust) are set to use the resolver (resolver) of Rust 2021 Edition, while the default resolver for virtual workspaces (virtual workspaces in Rust) is the resolver of Rust 2018 Edition. If you want to keep the current resolver, you need to specify workspace.resolver = "1" in the manifest file of the workspace root directory; if you want to use the resolver of Rust 2021 Edition, you need to specify workspace.resolver = "2" in the manifest file of the workspace root directory.
The purpose of this warning message is to remind Rust developers to pay attention to the differences between Rust 2021 Edition and Rust 2018 Edition, as well as the need to specify the version of the resolver when using virtual workspaces. Rust 2021 Edition is the latest version of the Rust language, introducing some new language features and improvements, but it may also be incompatible with Rust 2018 Edition. Therefore, when using Rust 2021 Edition, these changes need to be taken into account and appropriate adjustments need to be made.