From 6c981e547b9899901beeb373e7c4999ca5acba87 Mon Sep 17 00:00:00 2001 From: Euan Kemp Date: Sun, 7 Jan 2018 09:48:10 -0800 Subject: [PATCH] [Rust] Recommend style based on 'rustfmt' defaults Rustfmt is widely accepted in the rust community. The actual style it enforces is not completely stable, but running a reasonably recent rustfmt and reading the short rfc-based style guide seems better than nothing by a long shot. --- CONTRIBUTING.md | 1 + 1 file changed, 1 insertion(+) diff --git a/CONTRIBUTING.md b/CONTRIBUTING.md index ab603bb2316..27fd3e8b0b8 100644 --- a/CONTRIBUTING.md +++ b/CONTRIBUTING.md @@ -58,6 +58,7 @@ Code change should conform to the programming style guide of the respective lang - Python: https://www.python.org/dev/peps/pep-0008/ - R: https://google.github.io/styleguide/Rguide.xml - Ruby: https://github.com/bbatsov/ruby-style-guide +- Rust: https://github.com/rust-lang-nursery/fmt-rfcs/blob/master/guide/guide.md (the default [rustfmt](https://github.com/rust-lang-nursery/rustfmt) configuration) - Scala: http://docs.scala-lang.org/style/ - Swift: [Apple Developer](https://developer.apple.com/library/prerelease/ios/documentation/Swift/Conceptual/Swift_Programming_Language/TheBasics.html) - TypeScript: https://github.com/Microsoft/TypeScript/wiki/Coding-guidelines