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

[WIP] Transmute #2335

Open
wants to merge 96 commits into
base: main
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
96 commits
Select commit Hold shift + click to select a range
5b5d5a6
[ci] Don't run on push (#1882)
joshlf Oct 12, 2024
e7217b5
Release 0.9.0-alpha.0 (#1881)
joshlf Oct 12, 2024
2b56c07
Enable clippy::missing_const_for_fn (#1883)
joshlf Oct 12, 2024
1788f44
Upgrade some code for MSRV 1.65 (#1885)
joshlf Oct 12, 2024
7349fe0
Clean up some code for new MSRV (#1888)
joshlf Oct 12, 2024
19ab41c
Upgrade versions of some dependencies (#1886)
joshlf Oct 12, 2024
5452c3d
Roll pinned toolchains on v0.8.x branch (#1887)
joshlf Oct 12, 2024
2e819ac
[ci] Roll pinned nightly toolchain (#1900)
google-pr-creation-bot Oct 13, 2024
ccf477d
[ci] Roll pinned nightly toolchain (#1902)
google-pr-creation-bot Oct 14, 2024
c128ed2
[CI] Bump github/codeql-action from 3.26.12 to 3.26.13 (#1903)
dependabot[bot] Oct 14, 2024
1c8cbc7
[CI] Bump Swatinem/rust-cache from 2.7.3 to 2.7.5 (#1904)
dependabot[bot] Oct 14, 2024
d9e48e3
[pointer] Clarify semantics of aliasing invariants (#1889)
joshlf Oct 14, 2024
967b3a0
[derive] Document trivial_is_bit_valid (#1905)
joshlf Oct 14, 2024
b43c510
[pointer] Add separate PtrInner (#1891)
joshlf Oct 14, 2024
ca9243f
[pointer][invariant] Move to separate file (#1906)
joshlf Oct 14, 2024
51475bd
[pointer] Match variance of references (#1894)
joshlf Oct 14, 2024
f80a65d
[pointer] Make invariants opaque, more ergonomic (#1895)
joshlf Oct 14, 2024
85a12e2
[pointer] Simplify AliasingSafe, rename to Read (#1908)
joshlf Oct 14, 2024
ae43fce
[pointer] Rename Any -> Unknown/Inaccessible (#1909)
joshlf Oct 14, 2024
0665b90
[pointer] Support generic invariant mapping (#1896)
joshlf Oct 14, 2024
77a5f56
[ci] Roll pinned nightly toolchain (#1915)
google-pr-creation-bot Oct 15, 2024
49749b7
Remove items deprecated in 0.8 (#1916)
joshlf Oct 15, 2024
f04c344
Fix flaky `TryFromBytes` tests (#1917)
jswrenn Oct 15, 2024
70e5ef4
Use #[marker] on nightly in CI (#1925)
joshlf Oct 17, 2024
d3e44e2
[ci] Roll pinned nightly toolchain (#1928)
google-pr-creation-bot Oct 17, 2024
af67d9a
Use #[marker] on nightly in CI (#1926)
joshlf Oct 17, 2024
5bd167f
[ci] Roll pinned stable toolchain (#1938)
google-pr-creation-bot Oct 18, 2024
706dccf
[ci] Roll pinned nightly toolchain (#1935)
google-pr-creation-bot Oct 18, 2024
65e60ae
[ci] Roll pinned nightly toolchain (#1947)
google-pr-creation-bot Oct 19, 2024
35d9d4f
[ci] Roll pinned nightly toolchain (#1950)
google-pr-creation-bot Oct 20, 2024
300ddc2
[ci] Roll pinned nightly toolchain (#1955)
google-pr-creation-bot Oct 21, 2024
986e3c5
[unsafe-fields] Initial commit (#1929)
joshlf Oct 21, 2024
f51d666
[unsafe-fields] Add Cargo.toml description (#1959)
joshlf Oct 21, 2024
34f4e6e
[unsafe-fields] Add as_ref_checked (#1960)
joshlf Oct 21, 2024
19c211e
[ci] Roll pinned nightly toolchain (#1963)
google-pr-creation-bot Oct 22, 2024
60a7497
[CI] Bump actions/dependency-review-action from 4.3.4 to 4.3.5 (#1964)
dependabot[bot] Oct 22, 2024
0fae530
[unsafe-fields] Add README.md (#1961)
joshlf Oct 22, 2024
ef83307
[ci] Roll pinned nightly toolchain (#1972)
google-pr-creation-bot Oct 23, 2024
5577927
[CI] Bump github/codeql-action from 3.26.13 to 3.27.0 (#1973)
dependabot[bot] Oct 23, 2024
6e10d00
[ci] Roll pinned nightly toolchain (#1975)
google-pr-creation-bot Oct 24, 2024
a407be2
[CI] Bump actions/checkout from 4.2.1 to 4.2.2 (#1977)
dependabot[bot] Oct 24, 2024
a927e1e
[ci] Roll pinned nightly toolchain (#1981)
google-pr-creation-bot Oct 25, 2024
31c90a3
[CI] skip installation step when cache hit (#1978)
dacozai Oct 25, 2024
0560918
[ci] Roll pinned nightly toolchain (#1986)
google-pr-creation-bot Oct 28, 2024
609e98d
[ci] Roll pinned nightly toolchain (#1989)
google-pr-creation-bot Oct 29, 2024
a6ce954
[CI] Bump actions/dependency-review-action from 4.3.5 to 4.4.0 (#1990)
dependabot[bot] Oct 29, 2024
a80c2d4
[ci] Roll pinned nightly toolchain (#1992)
google-pr-creation-bot Oct 30, 2024
3eb2fb7
[ci] Roll pinned nightly toolchain (#1996)
google-pr-creation-bot Oct 31, 2024
e9e8cfc
[ci] Roll pinned nightly toolchain (#2003)
google-pr-creation-bot Nov 1, 2024
6aba344
documented how to implement enums with endian-specific tags (#1993)
Aditya-PS-05 Nov 1, 2024
9473971
[ci] Roll pinned nightly toolchain (#2006)
google-pr-creation-bot Nov 2, 2024
f9e09fd
[ci] Roll pinned nightly toolchain (#2008)
google-pr-creation-bot Nov 3, 2024
255babe
[ci] Roll pinned nightly toolchain (#2011)
google-pr-creation-bot Nov 4, 2024
c72fcbf
Always inline layout validation and pointer cast code to optimize out…
joshlf Nov 4, 2024
3d5a8a6
[ci] Add GitHub Action to backport PR (#2017)
joshlf Nov 4, 2024
375c032
[ci][backport-pr] Fetch all commits, configure git author (#2018)
joshlf Nov 5, 2024
ace5bb0
[ci] Roll pinned nightly toolchain (#2023)
google-pr-creation-bot Nov 5, 2024
13c11f8
[layout] Update test documentation (#2026)
joshlf Nov 5, 2024
4de8504
[ci] Roll pinned nightly toolchain (#2029)
google-pr-creation-bot Nov 6, 2024
3bcf6f3
Relax `map_src` argument bound to `FnOnce` (#2012) (#2028)
joshlf Nov 6, 2024
6fb430e
[ci] Roll pinned nightly toolchain (#2032)
google-pr-creation-bot Nov 7, 2024
af53999
Document that derives imply supertraits, where applicable. (#2038) (#…
google-pr-creation-bot Nov 8, 2024
d3157cc
[CI] Bump github/codeql-action from 3.27.0 to 3.27.1 (#2045)
dependabot[bot] Nov 11, 2024
6c2a249
Add `FromBytes::read_from_io` and `IntoBytes::write_to_io` (#2016) (#…
joshlf Nov 11, 2024
22b6039
[CI] Bump github/codeql-action from 3.27.1 to 3.27.2 (#2050)
dependabot[bot] Nov 12, 2024
9dc79c2
[CI] Bump github/codeql-action from 3.27.2 to 3.27.3 (#2054)
dependabot[bot] Nov 13, 2024
90c438b
Suppot the unstable f16 and f128 types (#2042) (#2058)
google-pr-creation-bot Nov 13, 2024
cfddcf1
[derive] Suppress non_camel_case_types... (#2057) (#2060)
google-pr-creation-bot Nov 14, 2024
7a3c01c
[CI] Bump codecov/codecov-action from 4 to 5 (#2067)
dependabot[bot] Nov 15, 2024
6394871
[CI] Bump github/codeql-action from 3.27.3 to 3.27.4 (#2068)
dependabot[bot] Nov 15, 2024
2bac3e5
[CI] Bump step-security/harden-runner from 2.10.1 to 2.10.2 (#2079)
dependabot[bot] Nov 19, 2024
ed40b20
[CI] Bump actions/dependency-review-action from 4.4.0 to 4.5.0 (#2090)
dependabot[bot] Nov 21, 2024
51bc4df
[CI] Bump github/codeql-action from 3.27.4 to 3.27.5 (#2089)
dependabot[bot] Nov 21, 2024
de1c6d8
[ci] Roll pinned stable toolchain (#2120)
google-pr-creation-bot Dec 3, 2024
775a1ba
[CI] Bump github/codeql-action from 3.27.5 to 3.27.6 (#2122)
dependabot[bot] Dec 3, 2024
9a2fce6
[derive] Don't emit #[cfg(coverage_nightly)] (#2123) (#2126)
joshlf Dec 3, 2024
a3f102d
[CI] Bump github/codeql-action from 3.27.6 to 3.27.7 (#2148)
dependabot[bot] Dec 11, 2024
89c652a
[CI] Bump actions/upload-artifact from 4.4.3 to 4.5.0 (#2168)
dependabot[bot] Dec 18, 2024
1d6fa56
[CI] Bump github/codeql-action from 3.27.7 to 3.27.9 (#2156)
dependabot[bot] Dec 22, 2024
98b95d3
[ci] Roll pinned stable toolchain (#2225)
google-pr-creation-bot Jan 28, 2025
77846a9
[ci] Roll pinned stable toolchain (#2281)
google-pr-creation-bot Jan 31, 2025
99dab13
[pointer][invariant] Remove AliasingMapping, Inaccessible (#2301)
joshlf Feb 5, 2025
146fd48
[ci] Permit skipping cargo-semver-checks step (#2084) (#2309)
joshlf Feb 6, 2025
3acb652
Add initial support for unsized `MaybeUninit` wrapper type (#2055) (#…
joshlf Feb 6, 2025
64df858
Implement KnownLayout for f16 and f128 (#2250) (#2312)
google-pr-creation-bot Feb 6, 2025
66d39a9
Practice good `Self` hygiene (#2127) (#2313)
google-pr-creation-bot Feb 6, 2025
17e7e4d
[derive] Fix bug with KnownLayout on repr(packed) (#2307) (#2317)
google-pr-creation-bot Feb 7, 2025
c43bbed
Add `Src: FromBytes` in `try_transmute_mut!`, `Self: IntoBytes` to `T…
joshlf Feb 14, 2025
28b55b9
[pointer] Store validity in the referent type (#2334)
joshlf Feb 17, 2025
9322a2c
[pointer] Remove Ptr::project method (#2339)
joshlf Feb 17, 2025
79ec7c4
[pointer] Fix Ptr[Inner] variance (#2351)
joshlf Feb 18, 2025
1339ee9
Fix soundness of FromBytes::read_from_io (#2320)
kupiakos Feb 19, 2025
7ed40f1
[release-new-crate-versions] Release on v0.8.x by default (#2362)
joshlf Feb 19, 2025
c3aaddc
[readme] Explain maintenance, thank contributors (#2360) (#2363)
joshlf Feb 19, 2025
8ee868d
[ci] Roll pinned stable toolchain (#2366)
google-pr-creation-bot Feb 20, 2025
02f5982
[WIP] Transmute
joshlf Feb 7, 2025
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
7 changes: 7 additions & 0 deletions .github/actions/cache/action.yml
Original file line number Diff line number Diff line change
Expand Up @@ -8,12 +8,19 @@

name: Cache
description: 'Caches cargo dependencies'
outputs:
cache-hit:
description: "Cache Hit"
value: ${{ steps.cache.outputs.cache-hit }}
runs:
using: composite
steps:
- uses: actions/cache@v4
id: cache
with:
path: |
~/.cargo/
key: ${{ runner.os }}-cargo-${{ hashFiles('**/Cargo.toml') }}
restore-keys: |
${{ runner.os }}-cargo-
63 changes: 63 additions & 0 deletions .github/workflows/backport-pr.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,63 @@
# Copyright 2024 The Fuchsia Authors
#
# Licensed under a BSD-style license <LICENSE-BSD>, Apache License, Version 2.0
# <LICENSE-APACHE or https://www.apache.org/licenses/LICENSE-2.0>, or the MIT
# license <LICENSE-MIT or https://opensource.org/licenses/MIT>, at your option.
# This file may not be copied, modified, or distributed except according to
# those terms.

name: Backport PR
on:
workflow_dispatch:
inputs:
commit:
description: "Commit to backport"
required: true
target_branch:
description: "Target branch for the new PR"
required: true
default: 'main'

permissions: read-all

jobs:
release:
runs-on: ubuntu-latest
name: Backport PR
steps:
- name: Checkout code
uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4.2.2
with:
ref: ${{ github.event.inputs.target_branch }}
# Check out the entire repository so that the target commit is checked
# out (by default, only fetches the single commit identified by the
# `ref` argument).
fetch-depth: 0
persist-credentials: false
- name: Cherry-pick commit
run: |
set -eo pipefail

AUTHOR_NAME="$(git log -1 --pretty='%an' ${{ github.event.inputs.commit }})"
AUTHOR_EMAIL="$(git log -1 --pretty='%ae' ${{ github.event.inputs.commit }})"

git config --global user.name "$AUTHOR_NAME"
git config --global user.email "$AUTHOR_EMAIL"

git cherry-pick ${{ github.event.inputs.commit }}

PR_TITLE="$(git log -1 --pretty=%s)"
echo "PR_TITLE=$PR_TITLE" >> $GITHUB_ENV

AUTHOR="$AUTHOR_NAME <$AUTHOR_EMAIL>"
echo "AUTHOR=$AUTHOR" >> $GITHUB_ENV

- name: Submit PR
uses: peter-evans/create-pull-request@5e914681df9dc83aa4e4905692ca88beb2f9e91f # v7.0.5
with:
author: "${{ env.AUTHOR }}"
committer: "${{ env.AUTHOR }}"
title: "${{ env.PR_TITLE }}"
branch: backport-${{ github.event.inputs.commit }}
push-to-fork: google-pr-creation-bot/zerocopy
token: ${{ secrets.GOOGLE_PR_CREATION_BOT_TOKEN }}
Loading
Loading