File tree Expand file tree Collapse file tree 2 files changed +8
-0
lines changed
src/tools/unstable-book-gen/src Expand file tree Collapse file tree 2 files changed +8
-0
lines changed Original file line number Diff line number Diff line change 1
1
[book ]
2
2
title = " The Rust Unstable Book"
3
+ author = " The Rust Community"
Original file line number Diff line number Diff line change @@ -116,6 +116,11 @@ fn copy_recursive(path: &Path, to: &Path) {
116
116
}
117
117
}
118
118
119
+ fn copy_book_toml( path : & Path ) {
120
+ let mut file = t ! ( File :: create( & path. join( "book.toml" ) ) ) ;
121
+ t!( file. write_fmt( format_args!( include_str!( "book.toml" ) ) ;
122
+ }
123
+
119
124
fn main( ) {
120
125
let src_path_str = env:: args_os( ) . skip( 1 ) . next( ) . expect( "source path required" ) ;
121
126
let dest_path_str = env:: args_os( ) . skip( 2 ) . next( ) . expect( "destination path required" ) ;
@@ -141,4 +146,6 @@ fn main() {
141
146
copy_recursive( & doc_src_path, & dest_path) ;
142
147
143
148
generate_summary( & dest_path, & lang_features, & lib_features) ;
149
+
150
+ copy_book_toml( & dest_path) ;
144
151
}
You can’t perform that action at this time.
0 commit comments