This plugin is provided as-is with no guarantees of any kind.
Syntax highlighting isn't great, but setting breakpoints in the GUI should work.
Based on: https://github.com/youknowone/rust-xcode-langspec https://github.com/steventroughtonsmith/lua-xclangspec https://github.com/apollographql/xcode-graphql
If your Xcode UUID is not listed here, please make an issue (or a pull request!) and we'll add it.
You can check your UUID with this command:
$ defaults read /Applications/Xcode.app/Contents/Info DVTPlugInCompatibilityUUID
Execute the setup.sh
script for all versions of Xcode other than Xcode 11. For Xcode 11, see the Manual Install instructions below.
You may have to quit and reopen Xcode once or twice and click the Load Bundle
button in a popup that should appear automatically.
Copy the Plug-ins/Rust.ideplugin
folder to ~/Library/Developer/Xcode/Plug-ins/
. Copy the Rust.xclangspec
file to ~/Library/Developer/Xcode/Specifications/
.
In Xcode 11, you may be able to use the plugin by copying Rust.xclangspec
to /Applications/Xcode.app/Contents/SharedFrameworks/SourceModel.framework/Versions/A/Resources/LanguageSpecifications/
instead and then copying Xcode.SourceCodeLanguage.Rust.plist
to /Applications/Xcode.app/Contents/SharedFrameworks/SourceModel.framework/Versions/A/Resources/LanguageMetadata/
.
If Xcode crashes on startup after you update it, you may need to uninstall the plugin, restart Xcode, then reinstall the plugin and restart Xcode again. To uninstall the plugin, execute the uninstall.sh
script.