support rust mode