Merge pull request #593 from evandroforks/add_generated_file_warning

Added an warning that rslib/build.rs is automatically generating file
This commit is contained in:
Damien Elmes 2020-04-29 18:15:56 +10:00 committed by GitHub
commit ff72325f05
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -23,7 +23,8 @@ fn get_identifiers(ftl_text: &str) -> Vec<String> {
fn proto_enum(idents: &[String]) -> String {
let mut buf = String::from(
r#"
r#"// This file is automatically generated as part of the build process.
syntax = "proto3";
package backend_proto;
enum FluentString {
@ -67,7 +68,8 @@ mod test {
assert_eq!(
proto_enum(&idents),
r#"
r#"// This file is automatically generated as part of the build process.
syntax = "proto3";
package backend_strings;
enum FluentString {