Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[pull] master from ruuda:master #2

Open
wants to merge 34 commits into
base: master
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
34 commits
Select commit Hold shift + click to select a range
3d7a7c8
Updated redox_syscall to v0.2
zonyitoo Mar 24, 2021
05d9832
Require at least Rust 1.34.2
ruuda Mar 24, 2021
8d8fc06
Sidestep breaking change in Cargo lockfile format
ruuda Mar 24, 2021
53a9509
Bump version to 4.0.0
ruuda Mar 24, 2021
e80a250
Update version in lockfile
ruuda Mar 24, 2021
059f913
Add Wasm support
daxpedda May 13, 2023
fadcdf6
Migrate CI to GitHub Actions
ruuda May 15, 2023
ede2a66
Bump version to 4.1.0
ruuda May 15, 2023
3687e98
Use pthread_threadid_np on Apple platforms
haxelion Aug 19, 2023
6b2e22f
Restore lockfile compatibility with Rust 1.34.2
ruuda Aug 20, 2023
9565e52
Write changelog for v4.2.0
ruuda Aug 20, 2023
975a6e7
Drop badge from crate metadata
ruuda Aug 20, 2023
113cb4d
Bump version to 4.2.0
ruuda Aug 20, 2023
c2bc94e
Add repository boilerplate
ruuda Sep 21, 2023
7ec4c4b
Add rust-toolchain file
ruuda Oct 16, 2023
821721a
Use libc on Redox
4lDO2 Oct 14, 2023
ba13dff
Write changelog for v4.2.1
ruuda Oct 16, 2023
b44a6e7
Bump version to 4.2.1
ruuda Oct 16, 2023
0f2442a
Make thread-id compile for SGX target
Jul 17, 2024
d3f7760
Write changelog for v4.2.2
ruuda Jul 18, 2024
befd2c6
Bump version to 4.2.2
ruuda Jul 18, 2024
cbc3c3d
Replace winapi dependency with windows-sys
ruuda Oct 22, 2024
1aaa9af
Bump MSRV to Rust 1.56.1
ruuda Oct 22, 2024
6a71a37
Generate CI files using RCL
ruuda Oct 22, 2024
af8571a
Generate GitHub Actions config from RCL as well
ruuda Oct 22, 2024
2505140
Make import paths compatible with Rust 2021
ruuda Oct 22, 2024
3a338a6
Simplify GitHub Actions build config
ruuda Oct 22, 2024
0375e22
Bump the MSRV further to Rust 1.60
ruuda Oct 22, 2024
c849177
Bump GitHub Actions checkout action to 4.2
ruuda Oct 22, 2024
ca7ad2a
Write changelog for v5.0.0
ruuda Oct 22, 2024
a1042de
Bump version to 5.0.0
ruuda Oct 22, 2024
02bf923
Autoformat build.rcl
ruuda Oct 22, 2024
966bbbc
Fix typo in comment in build.rcl
ruuda Oct 22, 2024
e05d2f8
Use SPDX license format
atouchet Oct 22, 2024
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
72 changes: 32 additions & 40 deletions .appveyor.yml
Original file line number Diff line number Diff line change
@@ -1,40 +1,32 @@
environment:
matrix:
# Test every fourth release since the minimum supported version, to not
# waste too many resources. The list is already quite long.
- target: 1.8.0-x86_64-pc-windows-msvc
- target: 1.8.0-i686-pc-windows-msvc
- target: 1.12.0-x86_64-pc-windows-msvc
- target: 1.12.0-i686-pc-windows-msvc
- target: 1.16.0-x86_64-pc-windows-msvc
- target: 1.16.0-i686-pc-windows-msvc
- target: 1.20.0-x86_64-pc-windows-msvc
- target: 1.20.0-i686-pc-windows-msvc
- target: beta-x86_64-pc-windows-msvc
- target: beta-i686-pc-windows-msvc
- target: beta-x86_64-pc-windows-gnu
- target: beta-i686-pc-windows-gnu
- target: nightly-x86_64-pc-windows-msvc
- target: nightly-i686-pc-windows-msvc
- target: nightly-x86_64-pc-windows-gnu
- target: nightly-i686-pc-windows-gnu

install:
# Download the Rust and Cargo installer.
- ps: Start-FileDownload "https://static.rust-lang.org/dist/rust-${env:target}.msi"

# Install Rust and Cargo and wait for installation to finish by using Write-Output.
- ps: msiexec /package "rust-${env:target}.msi" /quiet /norestart | Write-Output

# Pick up the new Path variable after the installer modified it.
- ps: $env:Path = [System.Environment]::GetEnvironmentVariable("Path","Machine")

# Print versions for future reference.
- rustc --version
- cargo --version

build_script:
- cargo build

test_script:
- cargo test
# This file is generated from build.rcl.
{
"build_script": ["cargo build"],
"environment": {
"matrix": [
{"target": "1.60.0-x86_64-pc-windows-msvc"},
{"target": "1.60.0-i686-pc-windows-msvc"},
{"target": "1.70.0-x86_64-pc-windows-msvc"},
{"target": "1.70.0-i686-pc-windows-msvc"},
{"target": "beta-x86_64-pc-windows-msvc"},
{"target": "beta-i686-pc-windows-msvc"},
{"target": "nightly-x86_64-pc-windows-msvc"},
{"target": "nightly-i686-pc-windows-msvc"},
{"target": "beta-x86_64-pc-windows-gnu"},
{"target": "beta-i686-pc-windows-gnu"}
]
},
"install": [
{
"ps": "Start-FileDownload \"https://static.rust-lang.org/dist/rust-${env:target}.msi\""
},
{
"ps": "msiexec /package \"rust-${env:target}.msi\" /quiet /norestart | Write-Output"
},
{
"ps": "$env:Path = [System.Environment]::GetEnvironmentVariable(\"Path\",\"Machine\")"
},
"rustc --version",
"cargo --version"
],
"test_script": ["cargo test"]
}
108 changes: 108 additions & 0 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,108 @@
# This file is generated from build.rcl.
{
"env": {"CARGO_TERM_COLOR": "always"},
"jobs": {
"native-1-60-0": {
"runs-on": "ubuntu-latest",
"steps": [
{"uses": "actions/[email protected]"},
{
"name": "Install toolchain",
"run": "rustup toolchain install 1.60.0\nrustup target add x86_64-unknown-linux-gnu --toolchain 1.60.0\n"
},
{
"name": "Build",
"run": "cargo +1.60.0 build --target x86_64-unknown-linux-gnu --verbose"
},
{
"name": "Run tests",
"run": "cargo +1.60.0 test --target x86_64-unknown-linux-gnu --verbose"
}
]
},
"native-1-70-0": {
"runs-on": "ubuntu-latest",
"steps": [
{"uses": "actions/[email protected]"},
{
"name": "Install toolchain",
"run": "rustup toolchain install 1.70.0\nrustup target add x86_64-unknown-linux-gnu --toolchain 1.70.0\n"
},
{
"name": "Build",
"run": "cargo +1.70.0 build --target x86_64-unknown-linux-gnu --verbose"
},
{
"name": "Run tests",
"run": "cargo +1.70.0 test --target x86_64-unknown-linux-gnu --verbose"
}
]
},
"native-beta": {
"runs-on": "ubuntu-latest",
"steps": [
{"uses": "actions/[email protected]"},
{
"name": "Install toolchain",
"run": "rustup toolchain install beta\nrustup target add x86_64-unknown-linux-gnu --toolchain beta\n"
},
{
"name": "Build",
"run": "cargo +beta build --target x86_64-unknown-linux-gnu --verbose"
},
{
"name": "Run tests",
"run": "cargo +beta test --target x86_64-unknown-linux-gnu --verbose"
}
]
},
"native-nightly": {
"runs-on": "ubuntu-latest",
"steps": [
{"uses": "actions/[email protected]"},
{
"name": "Install toolchain",
"run": "rustup toolchain install nightly\nrustup target add x86_64-unknown-linux-gnu --toolchain nightly\n"
},
{
"name": "Build",
"run": "cargo +nightly build --target x86_64-unknown-linux-gnu --verbose"
},
{
"name": "Run tests",
"run": "cargo +nightly test --target x86_64-unknown-linux-gnu --verbose"
}
]
},
"sgx-msrv": {
"runs-on": "ubuntu-latest",
"steps": [
{"uses": "actions/[email protected]"},
{
"name": "Install toolchain",
"run": "rustup toolchain install 1.60.0\nrustup target add x86_64-fortanix-unknown-sgx --toolchain 1.60.0\n"
},
{
"name": "Build",
"run": "cargo +1.60.0 build --target x86_64-fortanix-unknown-sgx --verbose"
}
]
},
"wasm-msrv": {
"runs-on": "ubuntu-latest",
"steps": [
{"uses": "actions/[email protected]"},
{
"name": "Install toolchain",
"run": "rustup toolchain install 1.60.0\nrustup target add wasm32-unknown-unknown --toolchain 1.60.0\n"
},
{
"name": "Build",
"run": "cargo +1.60.0 build --target wasm32-unknown-unknown --verbose"
}
]
}
},
"name": "Build",
"on": {"pull_request": {"branches": ["master"]}, "push": {"branches": ["*"]}}
}
11 changes: 0 additions & 11 deletions .travis.yml

This file was deleted.

96 changes: 71 additions & 25 deletions Cargo.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

16 changes: 5 additions & 11 deletions Cargo.toml
Original file line number Diff line number Diff line change
@@ -1,23 +1,17 @@
[package]
name = "thread-id"
version = "3.3.0"
version = "5.0.0"
authors = ["Ruud van Asseldonk <[email protected]>"]
license = "MIT/Apache-2.0"
license = "MIT OR Apache-2.0"
readme = "readme.md"
keywords = ["thread", "pthread", "getcurrentthreadid"]
description = "Get a unique thread ID"
repository = "https://github.com/ruuda/thread-id"
documentation = "https://docs.rs/thread-id"

[badges]
travis-ci = { repository = "ruuda/thread-id", branch = "v3.3.0" }
appveyor = { repository = "ruuda/thread-id", branch = "v3.3.0" }
edition = "2021"

[target.'cfg(unix)'.dependencies]
libc = "0.2.6"
libc = "0.2.147"

[target.'cfg(windows)'.dependencies]
winapi = { version = "0.3", features = ["processthreadsapi"] }

[target.'cfg(target_os = "redox")'.dependencies]
redox_syscall = "0.1"
windows-sys = { version = "0.59", features = ["Win32_System_Threading"] }
Loading