Skip to content

Commit 7ce4b25

Browse files
committed
Relicense under MIT license
1 parent c4b24af commit 7ce4b25

File tree

7 files changed

+31
-741
lines changed

7 files changed

+31
-741
lines changed

Cargo.toml

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4,10 +4,11 @@ version = "0.3.1"
44
authors = [
55
"Roland Ruckerbauer <[email protected]>",
66
"Osspial <[email protected]>",
7-
"Artyom Pavlov <[email protected]>"]
7+
"Artyom Pavlov <[email protected]>"
8+
]
89
repository = "https://github.com/Osspial/hidapi-rs"
910
description = "Rust-y wrapper around hidapi"
10-
license = "LGPL-3.0+"
11+
license = "MIT"
1112
keywords = ["hid", "api", "usb","binding", "wrapper"]
1213
build = "build.rs"
1314
links = "hidapi"

LICENSE.txt

Lines changed: 16 additions & 662 deletions
Large diffs are not rendered by default.

examples/co2mon.rs

Lines changed: 3 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -3,24 +3,11 @@
33
44
This file is part of hidapi-rs, based on hidapi_rust by Roland Ruckerbauer.
55
It's also based on the Oleg Bulatov's work (https://github.com/dmage/co2mon)
6-
7-
hidapi-rs is free software: you can redistribute it and/or modify
8-
it under the terms of the GNU General Public License as published by
9-
the Free Software Foundation, either version 3 of the License, or
10-
(at your option) any later version.
11-
12-
hidapi-rs is distributed in the hope that it will be useful,
13-
but WITHOUT ANY WARRANTY; without even the implied warranty of
14-
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
15-
GNU General Public License for more details.
16-
17-
You should have received a copy of the GNU General Public License
18-
along with hidapi-rs. If not, see <http://www.gnu.org/licenses/>.
196
****************************************************************************/
207

218

22-
//! Opens a KIT MT 8057 CO2 detector and reads data from it. This
23-
//! example will not work unless such an HID is plugged in to your system.
9+
//! Opens a KIT MT 8057 CO2 detector and reads data from it. This
10+
//! example will not work unless such an HID is plugged in to your system.
2411
2512
extern crate hidapi;
2613

@@ -140,4 +127,4 @@ fn main() {
140127
},
141128
}
142129
}
143-
}
130+
}

examples/lshid.rs

Lines changed: 1 addition & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -2,19 +2,6 @@
22
Copyright (c) 2015 Osspial All Rights Reserved.
33
44
This file is part of hidapi-rs, based on hidapi_rust by Roland Ruckerbauer.
5-
6-
hidapi-rs is free software: you can redistribute it and/or modify
7-
it under the terms of the GNU General Public License as published by
8-
the Free Software Foundation, either version 3 of the License, or
9-
(at your option) any later version.
10-
11-
hidapi-rs is distributed in the hope that it will be useful,
12-
but WITHOUT ANY WARRANTY; without even the implied warranty of
13-
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
14-
GNU General Public License for more details.
15-
16-
You should have received a copy of the GNU General Public License
17-
along with hidapi-rs. If not, see <http://www.gnu.org/licenses/>.
185
****************************************************************************/
196

207

@@ -32,4 +19,4 @@ fn main() {
3219
for device in &api.devices() {
3320
println!("{:#?}", device);
3421
}
35-
}
22+
}

examples/readhid.rs

Lines changed: 8 additions & 21 deletions
Original file line numberDiff line numberDiff line change
@@ -2,34 +2,21 @@
22
Copyright (c) 2015 Osspial All Rights Reserved.
33
44
This file is part of hidapi-rs, based on hidapi_rust by Roland Ruckerbauer.
5-
6-
hidapi-rs is free software: you can redistribute it and/or modify
7-
it under the terms of the GNU General Public License as published by
8-
the Free Software Foundation, either version 3 of the License, or
9-
(at your option) any later version.
10-
11-
hidapi-rs is distributed in the hope that it will be useful,
12-
but WITHOUT ANY WARRANTY; without even the implied warranty of
13-
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
14-
GNU General Public License for more details.
15-
16-
You should have received a copy of the GNU General Public License
17-
along with hidapi-rs. If not, see <http://www.gnu.org/licenses/>.
185
****************************************************************************/
196

207

21-
//! Opens a Thrustmaster T-Flight HOTAS X HID and reads data from it. This
22-
//! example will not work unless such an HID is plugged in to your system.
23-
//! Will update in the future to support all HIDs.
8+
//! Opens a Thrustmaster T-Flight HOTAS X HID and reads data from it. This
9+
//! example will not work unless such an HID is plugged in to your system.
10+
//! Will update in the future to support all HIDs.
2411
2512
extern crate hidapi;
2613

2714
use hidapi::HidApi;
2815

2916
fn main() {
30-
17+
3118
let api = HidApi::new().expect("Failed to create API instance");
32-
19+
3320
let joystick = api.open(1103, 45320).expect("Failed to open device");
3421

3522
loop {
@@ -41,9 +28,9 @@ fn main() {
4128
for u in &buf[..res] {
4229
data_string.push_str(&(u.to_string() + "\t"));
4330
}
44-
31+
4532

4633
println!("{}", data_string);
47-
34+
4835
}
49-
}
36+
}

src/ffi.rs

Lines changed: 0 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -2,19 +2,6 @@
22
/// Copyright (c) 2015 Osspial All Rights Reserved.
33
///
44
/// This file is part of hidapi-rs, based on hidapi_rust by Roland Ruckerbauer.
5-
///
6-
/// hidapi-rs is free software: you can redistribute it and/or modify
7-
/// it under the terms of the GNU General Public License as published by
8-
/// the Free Software Foundation, either version 3 of the License, or
9-
/// (at your option) any later version.
10-
///
11-
/// hidapi-rs is distributed in the hope that it will be useful,
12-
/// but WITHOUT ANY WARRANTY; without even the implied warranty of
13-
/// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
14-
/// GNU General Public License for more details.
15-
///
16-
/// You should have received a copy of the GNU General Public License
17-
/// along with hidapi-rs. If not, see <http://www.gnu.org/licenses/>.
185
/// *************************************************************************
196
207
// For documentation look at the corresponding C header file hidapi.h

src/lib.rs

Lines changed: 0 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -2,19 +2,6 @@
22
// Copyright (c) 2015 Osspial All Rights Reserved.
33
//
44
// This file is part of hidapi-rs, based on hidapi_rust by Roland Ruckerbauer.
5-
//
6-
// hidapi-rs is free software: you can redistribute it and/or modify
7-
// it under the terms of the GNU General Public License as published by
8-
// the Free Software Foundation, either version 3 of the License, or
9-
// (at your option) any later version.
10-
//
11-
// hidapi-rs is distributed in the hope that it will be useful,
12-
// but WITHOUT ANY WARRANTY; without even the implied warranty of
13-
// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
14-
// GNU General Public License for more details.
15-
//
16-
// You should have received a copy of the GNU General Public License
17-
// along with hidapi-rs. If not, see <http://www.gnu.org/licenses/>.
185
// *************************************************************************
196

207
//! This crate provides a rust abstraction over the features of the C library

0 commit comments

Comments
 (0)