mirror of
https://github.com/rust-lang/rustlings.git
synced 2026-01-03 01:09:18 +00:00
feat: add lib
This commit is contained in:
parent
9c6f56b836
commit
b596ae4240
7
src/lib.rs
Normal file
7
src/lib.rs
Normal file
@ -0,0 +1,7 @@
|
|||||||
|
#[macro_use]
|
||||||
|
mod ui;
|
||||||
|
|
||||||
|
pub mod exercise;
|
||||||
|
pub mod project;
|
||||||
|
pub mod run;
|
||||||
|
pub mod verify;
|
||||||
16
src/main.rs
16
src/main.rs
@ -1,11 +1,11 @@
|
|||||||
use crate::exercise::{Exercise, ExerciseList};
|
|
||||||
use crate::project::RustAnalyzerProject;
|
|
||||||
use crate::run::{reset, run};
|
|
||||||
use crate::verify::verify;
|
|
||||||
use clap::{Parser, Subcommand};
|
use clap::{Parser, Subcommand};
|
||||||
use console::Emoji;
|
use console::Emoji;
|
||||||
use notify_debouncer_mini::notify::{self, RecursiveMode};
|
use notify_debouncer_mini::notify::{self, RecursiveMode};
|
||||||
use notify_debouncer_mini::{new_debouncer, DebouncedEventKind};
|
use notify_debouncer_mini::{new_debouncer, DebouncedEventKind};
|
||||||
|
use rustlings::exercise::{Exercise, ExerciseList};
|
||||||
|
use rustlings::project::RustAnalyzerProject;
|
||||||
|
use rustlings::run::{reset, run};
|
||||||
|
use rustlings::verify::verify;
|
||||||
use std::ffi::OsStr;
|
use std::ffi::OsStr;
|
||||||
use std::fs;
|
use std::fs;
|
||||||
use std::io::{self, prelude::*};
|
use std::io::{self, prelude::*};
|
||||||
@ -17,14 +17,6 @@ use std::sync::{Arc, Mutex};
|
|||||||
use std::thread;
|
use std::thread;
|
||||||
use std::time::Duration;
|
use std::time::Duration;
|
||||||
|
|
||||||
#[macro_use]
|
|
||||||
mod ui;
|
|
||||||
|
|
||||||
mod exercise;
|
|
||||||
mod project;
|
|
||||||
mod run;
|
|
||||||
mod verify;
|
|
||||||
|
|
||||||
/// Rustlings is a collection of small exercises to get you used to writing and reading Rust code
|
/// Rustlings is a collection of small exercises to get you used to writing and reading Rust code
|
||||||
#[derive(Parser)]
|
#[derive(Parser)]
|
||||||
#[command(version)]
|
#[command(version)]
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user