Compare commits

...

21 commits

Author SHA1 Message Date
6d5171357b
hedu data_idx offset fix
All checks were successful
cargo devel CI / cargo CI (push) Successful in 2m13s
fixes #56
2024-01-17 18:08:56 +01:00
714db3a9e6
Release v0.3.10-alpha.1
All checks were successful
cargo devel CI / cargo CI (push) Successful in 1m59s
2024-01-17 17:01:53 +01:00
4b7d08ae37
publish script mini update 2024-01-17 17:01:38 +01:00
d6cd2913d3
Release v0.3.10-alpha.0
All checks were successful
cargo devel CI / cargo CI (push) Successful in 1m59s
2024-01-17 17:00:42 +01:00
54eac92ca7
publish script cool
All checks were successful
cargo devel CI / cargo CI (push) Successful in 2m0s
2024-01-17 16:58:55 +01:00
e0bc9cba0b
Release 0.3.9
All checks were successful
cargo devel CI / cargo CI (push) Successful in 2m1s
libpt@0.3.9
libpt-bintols@0.3.9

Generated by cargo-workspaces
2024-01-17 16:23:02 +01:00
d1e888c138
fix hedu limit offset
Some checks failed
cargo devel CI / cargo CI (push) Has been cancelled
2024-01-17 16:21:41 +01:00
9f27db1ce3
Release independent packages
All checks were successful
cargo devel CI / cargo CI (push) Successful in 2m3s
Generated by cargo-workspaces
2024-01-17 16:08:59 +01:00
d792d88ff6
renew script again
Some checks failed
cargo devel CI / cargo CI (push) Has been cancelled
2024-01-17 15:58:37 +01:00
b3013caacc
Merge branch 'devel'
Some checks failed
cargo devel CI / cargo CI (push) Has been cancelled
2024-01-17 15:57:40 +01:00
1afaf6d3d2
Merge branch 'master' of https://git.cscherr.de/PlexSheep/pt
Some checks failed
cargo devel CI / cargo CI (push) Failing after 2m9s
2024-01-17 15:36:15 +01:00
b7ba762703
publish script 2024-01-17 15:36:00 +01:00
004550ba9c
publish script
Some checks failed
cargo devel CI / cargo CI (push) Has been cancelled
2024-01-17 15:35:52 +01:00
60765cfbf9
Release 0.3.6
Some checks failed
cargo devel CI / cargo CI (push) Failing after 2m7s
libpt@0.3.6
libpt-bintols@0.3.6

Generated by cargo-workspaces
2024-01-17 15:26:20 +01:00
8c1666af8f
Merge branch 'master' of https://git.cscherr.de/PlexSheep/pt
Some checks failed
cargo devel CI / cargo CI (push) Has been cancelled
2024-01-17 15:26:08 +01:00
4087752ab9
Merge branch 'devel' 2024-01-17 15:25:46 +01:00
686eff5a63
better publish script 2024-01-17 15:25:44 +01:00
af37c36ed2
Release 0.3.5
Some checks failed
cargo devel CI / cargo CI (push) Failing after 2m8s
libpt@0.3.5

Generated by cargo-workspaces
2024-01-17 15:23:56 +01:00
426f17bd4f
Release 0.3.4
libpt@0.3.4

Generated by cargo-workspaces
2024-01-17 15:23:46 +01:00
af93542c86
Release independent packages
Some checks failed
cargo devel CI / cargo CI (push) Has been cancelled
Generated by cargo-workspaces
2024-01-17 15:22:17 +01:00
3f3da0e209
Release 0.3.4
Some checks failed
cargo devel CI / cargo CI (push) Has been cancelled
libpt@0.3.4
libpt-bintols@0.3.4

Generated by cargo-workspaces
2024-01-17 15:21:48 +01:00
4 changed files with 22 additions and 26 deletions

View file

@ -10,14 +10,14 @@ members = [
default-members = [".", "members/libpt-core"]
[workspace.package]
publish = true
version = "0.3.3"
version = "0.3.10-alpha.1"
edition = "2021"
authors = ["Christoph J. Scherr <software@cscherr.de>"]
license = "MIT"
description = "Personal multitool"
readme = "README.md"
homepage = "https://git.cscherr.de/PlexSheep/libpt"
repository = "https://git.cscherr.de/PlexSheep/libpt"
homepage = "https://git.cscherr.de/PlexSheep/pt"
repository = "https://git.cscherr.de/PlexSheep/pt"
keywords = ["cli", "library"]
categories = [
"command-line-utilities",
@ -28,11 +28,11 @@ categories = [
[workspace.dependencies]
anyhow = "1.0.79"
thiserror = "1.0.56"
libpt-core = { version = "0.3.3", path = "members/libpt-core", registry = "cscherr" }
libpt-bintols = { version = "0.3.3", path = "members/libpt-bintols", registry = "cscherr" }
libpt-log = { version = "0.3.3", path = "members/libpt-log", registry = "cscherr" }
libpt-math = { version = "0.3.3", path = "members/libpt-math", registry = "cscherr" }
libpt-net = { version = "0.3.3", path = "members/libpt-net", registry = "cscherr" }
libpt-core = { version = "0.3.10-alpha.1", path = "members/libpt-core", registry = "cscherr" }
libpt-bintols = { version = "0.3.10-alpha.1", path = "members/libpt-bintols", registry = "cscherr" }
libpt-log = { version = "0.3.10-alpha.1", path = "members/libpt-log", registry = "cscherr" }
libpt-math = { version = "0.3.10-alpha.1", path = "members/libpt-math", registry = "cscherr" }
libpt-net = { version = "0.3.10-alpha.1", path = "members/libpt-net", registry = "cscherr" }
[package]
name = "libpt"

View file

@ -69,6 +69,7 @@ pub fn dump(data: &mut dyn DataSource, mut config: HeduConfig) -> Result<()> {
if config.skip > 0 {
data.skip(config.skip)?;
config.data_idx += config.skip;
config.data_idx += BYTES_PER_LINE - config.data_idx % BYTES_PER_LINE;
debug!("Skipped {}", humanbytes(config.skip));
}
@ -158,19 +159,14 @@ fn mask_chars(c: char) -> char {
}
fn rd_data(data: &mut dyn DataSource, config: &mut HeduConfig) -> Result<()> {
config.rd_counter += config.len;
config.data_idx += config.len;
match data.read(&mut config.buf[config.alt_buf]) {
Ok(mut len) => {
debug!(
trace!(
conf = format!("{:?}", config),
dif = (config.rd_counter as i64 - config.skip as i64),
eval = (config.rd_counter as i64 - config.skip as i64) as usize >= config.limit,
eval = config.limit != 0 && config.rd_counter >= config.limit,
"reached limit?"
);
if config.limit != 0
&& (config.rd_counter as i64 - config.skip as i64) as usize >= config.limit
{
if config.limit != 0 && config.rd_counter + (BYTES_PER_LINE - 1) >= config.limit {
trace!(
conf = format!("{:?}", config),
nlen = (config.limit % BYTES_PER_LINE),
@ -180,6 +176,8 @@ fn rd_data(data: &mut dyn DataSource, config: &mut HeduConfig) -> Result<()> {
config.stop = true;
}
config.len = len;
config.rd_counter += config.len;
config.data_idx += config.len;
return Ok(());
}
Err(err) => {

View file

@ -1,8 +0,0 @@
#!/bin/bash
set -e
PKGs=(libpt-{core,math,log,net,bintols,ccc,hedu,bin,py} libpt)
for PKG in "${PKGs[@]}"; do
echo "Package: $PKG"
cargo publish --registry cscherr -p "$PKG"
cargo publish -p "$PKG"
done

View file

@ -1,4 +1,10 @@
#!/bin/bash
set -e
cargo ws publish --registry cscherr
cargo publish --registry cscherr -p libpt
cargo check --all-features
cargo ws version --no-git-commit
NEW_VERSION=$(cat Cargo.toml | rg '^\s*version\s*=\s*"([^"]*)"\s*$' -or '$1')
bash scripts/set_all_versions.sh $NEW_VERSION
git add -A
git commit -m "Release v$NEW_VERSION"
cargo ws publish --registry cscherr --amend --publish-as-is || cargo publish --registry cscherr -p libpt
git push