rust installation logic