Skip to content

Commit

Permalink
Fork Sync: Update from parent repository (#59)
Browse files Browse the repository at this point in the history
* Release 1.0.184

* Following consensus on: serde-rs#2580 (review)

This PR phases out the precompiled per final consensus made in serde-rs#2580
i#
Fix a cfg

* No need for slow macOS CI if there is no platform-specific code

* Add repro of issue 2591

    error[E0507]: cannot move out of `*__self` which is behind a shared reference
       --> test_suite/tests/test_remote.rs:210:10
        |
    210 | #[derive(Serialize, Deserialize)]
        |          ^^^^^^^^^
        |          |
        |          data moved here
        |          move occurs because `unrecognized` has type `ErrorKind`, which does not implement the `Copy` trait
        |
        = note: this error originates in the derive macro `Serialize` (in Nightly builds, run with -Z macro-backtrace for more info)
    help: consider borrowing here
        |
    210 | #[derive(&Serialize, Deserialize)]
        |          +

* Fix "cannot move out of `*self` which is behind a shared reference"

* Release 1.0.185

---------

Co-authored-by: David Tolnay <dtolnay@gmail.com>
Co-authored-by: pinkforest <36498018+pinkforest@users.noreply.github.com>
  • Loading branch information
3 people committed Aug 23, 2023
1 parent c5fac44 commit 00d6e0e
Show file tree
Hide file tree
Showing 38 changed files with 19 additions and 1,624 deletions.
31 changes: 0 additions & 31 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -98,7 +98,6 @@ jobs:
- run: cd serde && cargo check --no-default-features
- run: cd serde && cargo check
- run: cd serde_derive && cargo check
- run: cd precompiled/serde_derive && cargo check

alloc:
name: Rust 1.36.0
Expand All @@ -109,36 +108,6 @@ jobs:
- uses: dtolnay/rust-toolchain@1.36.0
- run: cd serde && cargo build --no-default-features --features alloc

precompiled:
name: Precompiled
runs-on: ubuntu-latest
timeout-minutes: 45
steps:
- uses: actions/checkout@v3
- uses: dtolnay/rust-toolchain@nightly
with:
components: rust-src
targets: x86_64-unknown-linux-musl
- run: precompiled/build.sh
- name: replace serde_derive dependency with precompiled
run: |
cargo rm serde_derive --package serde
cargo rm serde_derive --package serde --dev
sed -i '/"serde_derive"/d' Cargo.toml
sed -i '/\[workspace\]/d' precompiled/serde_derive/Cargo.toml
cargo add --dev serde_derive --path precompiled/serde_derive --package serde_test_suite
git diff
- run: cd test_suite && cargo test --features unstable -- --skip ui --exact

macos:
name: macOS
runs-on: macos-latest
timeout-minutes: 45
steps:
- uses: actions/checkout@v3
- uses: dtolnay/rust-toolchain@stable
- run: cd precompiled/serde_derive && cargo check

minimal:
name: Minimal versions
runs-on: ubuntu-latest
Expand Down
1 change: 0 additions & 1 deletion precompiled/.gitignore

This file was deleted.

14 changes: 0 additions & 14 deletions precompiled/Cargo.toml

This file was deleted.

17 changes: 0 additions & 17 deletions precompiled/bin/Cargo.toml

This file was deleted.

4 changes: 0 additions & 4 deletions precompiled/bin/build.rs

This file was deleted.

45 changes: 0 additions & 45 deletions precompiled/bin/main.rs

This file was deleted.

1 change: 0 additions & 1 deletion precompiled/bin/src

This file was deleted.

19 changes: 0 additions & 19 deletions precompiled/build.sh

This file was deleted.

8 changes: 0 additions & 8 deletions precompiled/proc-macro2/Cargo.toml

This file was deleted.

0 comments on commit 00d6e0e

Please sign in to comment.