We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent b6d5daf commit 13ac12dCopy full SHA for 13ac12d
src/doc/rust.md
@@ -612,18 +612,18 @@ the behavior of the compiler.
612
613
~~~~
614
// Crate ID
615
-#[ crate_id = "projx#2.5" ];
+#![crate_id = "projx#2.5"]
616
617
// Additional metadata attributes
618
-#[ desc = "Project X" ];
619
-#[ license = "BSD" ];
620
-#[ comment = "This is a comment on Project X." ];
+#![desc = "Project X"]
+#![license = "BSD"]
+#![comment = "This is a comment on Project X."]
621
622
// Specify the output type
623
-#[ crate_type = "lib" ];
+#![crate_type = "lib"]
624
625
// Turn on a warning
626
-#[ warn(non_camel_case_types) ];
+#![warn(non_camel_case_types)]
627
628
629
A crate that contains a `main` function can be compiled to an executable.
0 commit comments