module RbSys::Mkmf

def gsub_cargo_command!(cargo_command, builder:)

def gsub_cargo_command!(cargo_command, builder:)
  cargo_command.gsub!("--profile #{builder.profile}", "--profile $(RB_SYS_CARGO_PROFILE)")
  cargo_command.gsub!(%r{--features \S+}, "--features $(RB_SYS_CARGO_FEATURES)")
  cargo_command
end