Skip to content

Commit 3d18e1d

Browse files
committed
remove some isolang dependencies
1 parent 7bcd043 commit 3d18e1d

File tree

13 files changed

+8
-18
lines changed

13 files changed

+8
-18
lines changed

tmc-langs-cli/Cargo.toml

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,6 @@ tmc-langs-core = { path = "../tmc-langs-core" }
99
tmc-langs-framework = { path = "../tmc-langs-framework" }
1010
tmc-langs-util = { path = "../tmc-langs-util" }
1111
clap = "2"
12-
isolang = "1"
1312
walkdir = "2"
1413
serde_json = "1"
1514
env_logger = "0.7"

tmc-langs-cli/src/main.rs

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,6 @@
11
//! CLI client for TMC
22
33
use clap::{App, Arg, Error, ErrorKind, SubCommand};
4-
use isolang::Language;
54
use log::debug;
65
use serde::Serialize;
76
use std::collections::HashMap;
@@ -11,7 +10,7 @@ use std::io::Write;
1110
use std::path::{Path, PathBuf};
1211
use tmc_langs_core::{FeedbackAnswer, TmcCore};
1312
use tmc_langs_framework::io::submission_processing;
14-
use tmc_langs_util::task_executor;
13+
use tmc_langs_util::{task_executor, Language};
1514
use url::Url;
1615
use walkdir::WalkDir;
1716

tmc-langs-core/Cargo.toml

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,6 @@ regex = "1"
1919
lazy_static = "1"
2020
percent-encoding = "2"
2121
serde_json = "1"
22-
isolang = "1"
2322

2423
[dev-dependencies]
2524
env_logger = "0.7"

tmc-langs-core/src/lib.rs

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -6,12 +6,11 @@ mod response;
66
mod tmc_core;
77

88
pub use error::CoreError;
9-
pub use isolang::Language;
109
pub use request::FeedbackAnswer;
1110
pub use response::{
1211
Course, CourseData, CourseDataExercise, CourseDataExercisePoint, CourseDetails, CourseExercise,
1312
ExerciseDetails, NewSubmission, Organization, Review, Submission, SubmissionFeedbackResponse,
1413
User,
1514
};
1615
pub use tmc_core::TmcCore;
17-
pub use tmc_langs_util::{RunResult, ValidationResult};
16+
pub use tmc_langs_util::{Language, RunResult, ValidationResult};

tmc-langs-core/src/tmc_core/api.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,6 @@ use crate::{
99
SubmissionFeedbackResponse, TmcCore, User,
1010
};
1111

12-
use isolang::Language;
1312
use oauth2::{prelude::SecretNewType, TokenResponse};
1413
use reqwest::blocking::{multipart::Form, RequestBuilder, Response as ReqwestResponse};
1514
use serde::de::DeserializeOwned;
@@ -18,6 +17,7 @@ use std::collections::HashMap;
1817
use std::fs::File;
1918
use std::path::Path;
2019
use std::time::SystemTime;
20+
use tmc_langs_util::Language;
2121
use url::Url;
2222

2323
/// Provides a wrapper for reqwest Response's json that deserializes into Response<T> and converts it into a result

tmc-langs-java/Cargo.toml

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,6 @@ edition = "2018"
66

77
[dependencies]
88
tmc-langs-framework = { path = "../tmc-langs-framework" }
9-
isolang = "1"
109
log = "0.4"
1110
walkdir = "2"
1211
thiserror = "1"

tmc-langs-java/src/ant.rs

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,6 @@ pub mod policy;
44

55
use super::{error::JavaError, plugin::JavaPlugin, CompileResult, TestRun, SEPARATOR};
66

7-
use isolang::Language;
87
use j4rs::Jvm;
98
use policy::AntStudentFilePolicy;
109
use std::env;
@@ -15,7 +14,7 @@ use std::process::Command;
1514
use std::time::Duration;
1615
use tmc_langs_framework::{
1716
domain::{ExerciseDesc, RunResult},
18-
plugin::{LanguagePlugin, ValidationResult},
17+
plugin::{Language, LanguagePlugin, ValidationResult},
1918
policy::StudentFilePolicy,
2019
Error,
2120
};

tmc-langs-java/src/maven.rs

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,6 @@ pub mod policy;
44

55
use super::{error::JavaError, plugin::JavaPlugin, CompileResult, TestRun, SEPARATOR};
66

7-
use isolang::Language;
87
use j4rs::Jvm;
98
use policy::MavenStudentFilePolicy;
109
use std::fs;
@@ -13,7 +12,7 @@ use std::process::Command;
1312
use std::time::Duration;
1413
use tmc_langs_framework::{
1514
domain::{ExerciseDesc, RunResult},
16-
plugin::{LanguagePlugin, ValidationResult},
15+
plugin::{Language, LanguagePlugin, ValidationResult},
1716
policy::StudentFilePolicy,
1817
Error,
1918
};

tmc-langs-java/src/plugin.rs

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,6 @@
22
33
use super::{error::JavaError, CompileResult, TestCase, TestCaseStatus, TestMethod, TestRun};
44

5-
use isolang::Language;
65
use j4rs::{InvocationArg, Jvm};
76
use std::collections::HashMap;
87
use std::convert::TryFrom;
@@ -11,7 +10,7 @@ use std::path::{Path, PathBuf};
1110
use std::process::Command;
1211
use tmc_langs_framework::{
1312
domain::{ExerciseDesc, RunResult, RunStatus, TestDesc, TestResult},
14-
plugin::{LanguagePlugin, ValidationResult},
13+
plugin::{Language, LanguagePlugin, ValidationResult},
1514
};
1615
use walkdir::WalkDir;
1716

tmc-langs-python3/Cargo.toml

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,6 @@ edition = "2018"
66

77
[dependencies]
88
tmc-langs-framework = { path = "../tmc-langs-framework" }
9-
isolang = "1"
109
lazy_static = "1"
1110
log = "0.4"
1211
serde = "1"

0 commit comments

Comments
 (0)