remotes/1761633750385213598/tmp_refs/heads/master
			
			
		
		
							parent
							
								
									49c89f05a0
								
							
						
					
					
						commit
						465d449dac
					
				| @ -1,5 +1,20 @@ | |||||||
|  | #[cfg(feature = "toml")] | ||||||
| extern crate skeptic; | extern crate skeptic; | ||||||
| 
 | 
 | ||||||
|  | #[cfg(feature = "toml")] | ||||||
| fn main() { | fn main() { | ||||||
|     skeptic::generate_doc_tests(&["README.md"]); |     skeptic::generate_doc_tests(&["README.md"]); | ||||||
| } | } | ||||||
|  | 
 | ||||||
|  | #[cfg(not(feature = "toml"))] | ||||||
|  | fn main() { | ||||||
|  |     // tests/skeptic.rs still expects a file to be at OUT_DIR/skeptic-tests.rs, so
 | ||||||
|  |     // make a dummy one
 | ||||||
|  |     use std::{env, fs::OpenOptions, path::Path}; | ||||||
|  |     let out_dir = Path::new(&env::var("OUT_DIR").expect("no out_dir set")).join("skeptic-tests.rs"); | ||||||
|  |     let f = OpenOptions::new() | ||||||
|  |         .create(true) | ||||||
|  |         .write(true) | ||||||
|  |         .open(out_dir) | ||||||
|  |         .expect("couldn't write to file"); | ||||||
|  | } | ||||||
|  | |||||||
					Loading…
					
					
				
		Reference in new issue