Skip to content

Commit d103afb

Browse files
committed
Added some doc comments
1 parent ce0d3ab commit d103afb

File tree

20 files changed

+33
-8
lines changed

20 files changed

+33
-8
lines changed

crates/bindings/tmc-langs-node/src/bin/generate-bindings.rs

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,5 @@
1+
//! Exports TypeScript bindings.
2+
13
use std::fs::File;
24

35
fn main() {

crates/bindings/tmc-langs-node/src/error.rs

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,5 @@
1+
//! Contains the Error type.
2+
13
use serde::{de, ser};
24
use std::{convert::From, fmt::Display};
35

crates/bindings/tmc-langs-node/src/helpers.rs

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,5 @@
1+
//! Contains helper functions for getting Rust types from neon arguments.
2+
13
use neon::{prelude::*, result::Throw};
24
use serde::Serialize;
35
use std::error::Error;

crates/bindings/tmc-langs-node/src/lib.rs

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,5 @@
1+
//! Node bindings to tmc-langs-rust.
2+
13
mod de;
24
mod error;
35
mod helpers;

crates/bindings/tmc-langs-node/src/ser.rs

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,4 @@
1-
//!
21
//! Serialize a Rust data structure into a `JsValue`
3-
//!
42
53
use crate::error::{Error, Result as LibResult};
64
use neon::{prelude::*, types::buffer::TypedArray};

crates/plugins/python3/src/error.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
// Python plugin error type
1+
//! Python plugin error type
22
33
use std::path::PathBuf;
44
use thiserror::Error;

crates/plugins/python3/src/python_test_result.rs

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,5 @@
1+
//! Contains the PythonTestResult type.
2+
13
use serde::{Deserialize, Serialize};
24
use std::collections::HashSet;
35
use tmc_langs_framework::TestResult;

crates/tmc-client/src/tmc_client.rs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
11
//! Contains the TmcClient struct for communicating with the TMC server.
2+
23
pub mod api_v8;
34

45
use self::api_v8::{PasteData, ReviewData};

crates/tmc-client/src/tmc_client/api_v8.rs

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,7 @@
11
#![allow(dead_code)]
22

3+
//! Models the API of https://tmc.mooc.fi (https://testmycode.github.io/tmc-server/).
4+
35
use crate::{request::*, response::*, ClientError, TmcClient};
46
use http::Method;
57
use oauth2::TokenResponse;

crates/tmc-langs-cli/src/error.rs

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,5 @@
1+
//! Contains various error types.
2+
13
use std::path::PathBuf;
24
use thiserror::Error;
35
use tmc_langs::ExerciseDownload;

0 commit comments

Comments
 (0)