Prevent cargo from passing --crate-type to rustc?


I want to use conditional compilation to specify different #![crate_type = "..."] attributes in my project, but rustc overrides these directives if the --crate-type flag is passed, and cargo passes this flag (by default, --crate-type lib). Is there any way to get cargo to not pass this flag at all?