Skip to content

Deprecation of cfg_attr(..., crate_type = "...") #4468

Open
@est31

Description

@est31

Hi,

I'm filing this issue to point out that declaring crate_type inside a cfg_attr is deprecated and will error at a certain point in the future. wasmer uses this construct in lib.rs:

#![cfg_attr(feature = "js", crate_type = "cdylib")]

I would have liked to open a PR to fix the usage but I don't fully understand where everywhere the run instructions are, so instead I opened this issue to discuss approaches to move away from cfg_attr. Thanks!

See also: rust-lang/rust#91632

Metadata

Metadata

Assignees

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions