replace crate_id attribute by crate_name