@tracepanel/agent-linux-s390x-gnu 0.6.0 → 0.8.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -946,6 +946,38 @@ impl N0 {
946
946
  }
947
947
  }
948
948
 
949
+ --------------------------------------------------------------------------------
950
+ ISC License (ISC), used by:
951
+ ring 0.17.14 (https://github.com/briansmith/ring)
952
+
953
+ // Copyright 2015-2024 Brian Smith.
954
+ //
955
+ // Permission to use, copy, modify, and/or distribute this software for any
956
+ // purpose with or without fee is hereby granted, provided that the above
957
+ // copyright notice and this permission notice appear in all copies.
958
+ //
959
+ // THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES
960
+ // WITH REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF
961
+ // MERCHANTABILITY AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY
962
+ // SPECIAL, DIRECT, INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES
963
+ // WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION
964
+ // OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF OR IN
965
+ // CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
966
+
967
+ #[cfg(target_pointer_width = "64")]
968
+ type CompilerWord = u64;
969
+
970
+ #[cfg(target_pointer_width = "32")]
971
+ type CompilerWord = u32;
972
+
973
+ /// A native word that isn't secret.
974
+ ///
975
+ /// `LeakyWord` supports `as` conversions to/from native types.
976
+ ///
977
+ /// XXX: This isn't the native word size on targets where a pointer isn't the
978
+ /// same size as a native word. TODO: Fix this.
979
+ pub(crate) type LeakyWord = CompilerWord;
980
+
949
981
  --------------------------------------------------------------------------------
950
982
  ISC License (ISC), used by:
951
983
  ring 0.17.14 (https://github.com/briansmith/ring)
@@ -1056,6 +1088,43 @@ ISC License (ISC), used by:
1056
1088
  // OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF OR IN
1057
1089
  // CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
1058
1090
 
1091
+ #[cfg(target_arch = "x86")]
1092
+ pub fn shift_full_blocks<const BLOCK_LEN: usize>(
1093
+ in_out: super::overlapping::Overlapping<'_, u8>,
1094
+ mut transform: impl FnMut(&[u8; BLOCK_LEN]) -> [u8; BLOCK_LEN],
1095
+ ) {
1096
+ let (in_out, src) = in_out.into_slice_src_mut();
1097
+ let in_out_len = in_out[src.clone()].len();
1098
+
1099
+ for i in (0..in_out_len).step_by(BLOCK_LEN) {
1100
+ let block = {
1101
+ let input =
1102
+ <&[u8; BLOCK_LEN]>::try_from(&in_out[(src.start + i)..][..BLOCK_LEN]).unwrap();
1103
+ transform(input)
1104
+ };
1105
+ let output = <&mut [u8; BLOCK_LEN]>::try_from(&mut in_out[i..][..BLOCK_LEN]).unwrap();
1106
+ *output = block;
1107
+ }
1108
+ }
1109
+
1110
+ --------------------------------------------------------------------------------
1111
+ ISC License (ISC), used by:
1112
+ ring 0.17.14 (https://github.com/briansmith/ring)
1113
+
1114
+ // Copyright 2018 Brian Smith.
1115
+ //
1116
+ // Permission to use, copy, modify, and/or distribute this software for any
1117
+ // purpose with or without fee is hereby granted, provided that the above
1118
+ // copyright notice and this permission notice appear in all copies.
1119
+ //
1120
+ // THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES
1121
+ // WITH REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF
1122
+ // MERCHANTABILITY AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY
1123
+ // SPECIAL, DIRECT, INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES
1124
+ // WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION
1125
+ // OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF OR IN
1126
+ // CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
1127
+
1059
1128
  //! Serialization and deserialization.
1060
1129
 
1061
1130
  #[doc(hidden)]
@@ -1113,6 +1182,40 @@ pub(super) mod fallback;
1113
1182
  mod sha2_32;
1114
1183
  mod sha2_64;
1115
1184
 
1185
+ --------------------------------------------------------------------------------
1186
+ ISC License (ISC), used by:
1187
+ ring 0.17.14 (https://github.com/briansmith/ring)
1188
+
1189
+ // Copyright 2022 Brian Smith.
1190
+ //
1191
+ // Permission to use, copy, modify, and/or distribute this software for any
1192
+ // purpose with or without fee is hereby granted, provided that the above
1193
+ // copyright notice and this permission notice appear in all copies.
1194
+ //
1195
+ // THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES
1196
+ // WITH REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF
1197
+ // MERCHANTABILITY AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY
1198
+ // SPECIAL, DIRECT, INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES
1199
+ // WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION
1200
+ // OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF OR IN
1201
+ // CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
1202
+
1203
+ /// Polyfill for `Option::unwrap()` as a const fn; feature `const_option`.
1204
+ /// https://github.com/rust-lang/rust/issues/67441.
1205
+ /// TODO(MSRV): Replace this with `x.unwrap()`.
1206
+ ///
1207
+ /// `T: Copy` avoids "constant functions cannot evaluate destructors."
1208
+ pub const fn unwrap_const<T>(x: Option<T>) -> T
1209
+ where
1210
+ T: Copy,
1211
+ {
1212
+ if let Some(x) = x {
1213
+ x
1214
+ } else {
1215
+ panic!("unwrap_const on `None`");
1216
+ }
1217
+ }
1218
+
1116
1219
  --------------------------------------------------------------------------------
1117
1220
  ISC License (ISC), used by:
1118
1221
  ring 0.17.14 (https://github.com/briansmith/ring)
@@ -1185,6 +1288,34 @@ ISC License (ISC), used by:
1185
1288
  // OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF OR IN
1186
1289
  // CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
1187
1290
 
1291
+ //! Utilities to make dealing with slices less tediuous.
1292
+
1293
+ /// Replaces the first N elements of `a` with the first N elements of `b`, where
1294
+ /// N is `core::cmp::min(a.len(), b.len())`, leaving the rest unchanged.
1295
+ pub fn overwrite_at_start<T: Copy>(a: &mut [T], b: &[T]) {
1296
+ a.iter_mut().zip(b).for_each(|(a, b)| {
1297
+ *a = *b;
1298
+ });
1299
+ }
1300
+
1301
+ --------------------------------------------------------------------------------
1302
+ ISC License (ISC), used by:
1303
+ ring 0.17.14 (https://github.com/briansmith/ring)
1304
+
1305
+ // Copyright 2024 Brian Smith.
1306
+ //
1307
+ // Permission to use, copy, modify, and/or distribute this software for any
1308
+ // purpose with or without fee is hereby granted, provided that the above
1309
+ // copyright notice and this permission notice appear in all copies.
1310
+ //
1311
+ // THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES
1312
+ // WITH REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF
1313
+ // MERCHANTABILITY AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY
1314
+ // SPECIAL, DIRECT, INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES
1315
+ // WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION
1316
+ // OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF OR IN
1317
+ // CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
1318
+
1188
1319
  pub use self::{
1189
1320
  array::Array,
1190
1321
  base::{IndexError, Overlapping},
@@ -1195,6 +1326,41 @@ mod array;
1195
1326
  mod base;
1196
1327
  mod partial_block;
1197
1328
 
1329
+ --------------------------------------------------------------------------------
1330
+ ISC License (ISC), used by:
1331
+ ring 0.17.14 (https://github.com/briansmith/ring)
1332
+
1333
+ // Copyright 2024 Brian Smith.
1334
+ //
1335
+ // Permission to use, copy, modify, and/or distribute this software for any
1336
+ // purpose with or without fee is hereby granted, provided that the above
1337
+ // copyright notice and this permission notice appear in all copies.
1338
+ //
1339
+ // THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES
1340
+ // WITH REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF
1341
+ // MERCHANTABILITY AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY
1342
+ // SPECIAL, DIRECT, INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES
1343
+ // WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION
1344
+ // OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF OR IN
1345
+ // CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
1346
+
1347
+ use crate::testutil;
1348
+ use core::{marker::PhantomData, mem::size_of};
1349
+
1350
+ /// A ZST that can be added to any type to make the type `!Send`.
1351
+ #[derive(Clone, Copy)]
1352
+ pub struct NotSend(PhantomData<*mut ()>);
1353
+
1354
+ impl NotSend {
1355
+ pub const VALUE: Self = Self(PhantomData);
1356
+ }
1357
+
1358
+ #[allow(deprecated)]
1359
+ const _: () = testutil::compile_time_assert_clone::<NotSend>();
1360
+ #[allow(deprecated)]
1361
+ const _: () = testutil::compile_time_assert_copy::<NotSend>();
1362
+ const _: () = assert!(size_of::<NotSend>() == 0);
1363
+
1198
1364
  --------------------------------------------------------------------------------
1199
1365
  ISC License (ISC), used by:
1200
1366
  ring 0.17.14 (https://github.com/briansmith/ring)
Binary file
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@tracepanel/agent-linux-s390x-gnu",
3
- "version": "0.6.0",
3
+ "version": "0.8.0",
4
4
  "description": "The tracepanel-agent binary for linux-s390x-gnu. Installed by @tracepanel/agent.",
5
5
  "license": "FSL-1.1-ALv2",
6
6
  "homepage": "https://tracepanel.dev",