rust.md : update crate attributes.
#[ author = "Jane Doe" ]; raises "warning: unknown crate attribute"
This commit is contained in:
parent
afe8f6e106
commit
466065946f
1 changed files with 2 additions and 2 deletions
|
|
@ -610,12 +610,12 @@ the behavior of the compiler.
|
|||
|
||||
~~~~
|
||||
// Package ID
|
||||
#[ pkgid = "projx#2.5" ];
|
||||
#[ crate_id = "projx#2.5" ];
|
||||
|
||||
// Additional metadata attributes
|
||||
#[ desc = "Project X" ];
|
||||
#[ license = "BSD" ];
|
||||
#[ author = "Jane Doe" ];
|
||||
#[ comment = "This is a comment on Project X." ];
|
||||
|
||||
// Specify the output type
|
||||
#[ crate_type = "lib" ];
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue