When encountering such problems, how to solve 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 commonly encountered when using Rust projects. The meaning of this warning message is that some crates (dependencies in Rust) are set to use the 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, it is necessary to consider these changes and make corresponding adjustments.