Skip to content

This is a bare bones xcode plugin for the rust language. It enables breakpoints to work

Notifications You must be signed in to change notification settings

junelife/rust-xcode-plugin

 
 

Repository files navigation

rust-xcode-plugin

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

Automatic Install

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.

Manual Install

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/.

Troubleshooting

Xcode crashes on startup after an update.

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.

About

This is a bare bones xcode plugin for the rust language. It enables breakpoints to work

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • Shell 100.0%