Skip to content

Commit

Permalink
Deprecate old crates
Browse files Browse the repository at this point in the history
Replace old crates with stubs that give compile-time
errors, notifying maintainers about the rename.
  • Loading branch information
aljazerzen committed Jan 17, 2025
1 parent 1e4f496 commit 65f552b
Show file tree
Hide file tree
Showing 123 changed files with 51 additions and 25,832 deletions.
14 changes: 3 additions & 11 deletions .github/workflows/publish-edgedb-derive.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -14,16 +14,8 @@ jobs:
contents: "read"
steps:
# checkout and env setup
- uses: actions/checkout@v3
- uses: DeterminateSystems/nix-installer-action@main
- uses: DeterminateSystems/magic-nix-cache-action@main
- name: Build the nix shell
run: nix develop --command just --version
- uses: Swatinem/rust-cache@v2

# test
- name: Test
run: nix develop --command cargo test --all-features --package=edgedb-derive
- uses: actions/checkout@v3
- uses: dtolnay/rust-toolchain@stable

# verify that git tag matches cargo version
- run: |
Expand All @@ -35,4 +27,4 @@ jobs:
- working-directory: ./edgedb-derive
run: |
nix develop --command cargo publish --token=${{ secrets.CARGO_REGISTRY_TOKEN }}
cargo publish --token=${{ secrets.CARGO_REGISTRY_TOKEN }} --no-verify
14 changes: 3 additions & 11 deletions .github/workflows/publish-edgedb-errors.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -14,16 +14,8 @@ jobs:
contents: "read"
steps:
# checkout and env setup
- uses: actions/checkout@v3
- uses: DeterminateSystems/nix-installer-action@main
- uses: DeterminateSystems/magic-nix-cache-action@main
- name: Build the nix shell
run: nix develop --command just --version
- uses: Swatinem/rust-cache@v2

# test
- name: Test
run: nix develop --command cargo test --all-features --package=edgedb-errors
- uses: actions/checkout@v3
- uses: dtolnay/rust-toolchain@stable

# verify that git tag matches cargo version
- run: |
Expand All @@ -35,4 +27,4 @@ jobs:
- working-directory: ./edgedb-errors
run: |
nix develop --command cargo publish --token=${{ secrets.CARGO_REGISTRY_TOKEN }}
cargo publish --token=${{ secrets.CARGO_REGISTRY_TOKEN }} --no-verify
16 changes: 4 additions & 12 deletions .github/workflows/publish-edgedb-protocol.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -13,17 +13,9 @@ jobs:
id-token: "write"
contents: "read"
steps:
# checkout and env setup
- uses: actions/checkout@v3
- uses: DeterminateSystems/nix-installer-action@main
- uses: DeterminateSystems/magic-nix-cache-action@main
- name: Build the nix shell
run: nix develop --command just --version
- uses: Swatinem/rust-cache@v2

# test
- name: Test
run: nix develop --command cargo test --all-features --package=edgedb-protocol
# checkout and env setup
- uses: actions/checkout@v3
- uses: dtolnay/rust-toolchain@stable

# verify that git tag matches cargo version
- run: |
Expand All @@ -35,4 +27,4 @@ jobs:
- working-directory: ./edgedb-protocol
run: |
nix develop --command cargo publish --token=${{ secrets.CARGO_REGISTRY_TOKEN }}
cargo publish --token=${{ secrets.CARGO_REGISTRY_TOKEN }} --no-verify
16 changes: 4 additions & 12 deletions .github/workflows/publish-edgedb-tokio.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -13,17 +13,9 @@ jobs:
id-token: "write"
contents: "read"
steps:
# checkout and env setup
- uses: actions/checkout@v3
- uses: DeterminateSystems/nix-installer-action@main
- uses: DeterminateSystems/magic-nix-cache-action@main
- name: Build the nix shell
run: nix develop --command just --version
- uses: Swatinem/rust-cache@v2

# test
- name: Test
run: nix develop --command cargo test --all-features --package=edgedb-tokio
# checkout and env setup
- uses: actions/checkout@v3
- uses: dtolnay/rust-toolchain@stable

# verify that git tag matches cargo version
- run: |
Expand All @@ -35,4 +27,4 @@ jobs:
- working-directory: ./edgedb-tokio
run: |
nix develop --command cargo publish --token=${{ secrets.CARGO_REGISTRY_TOKEN }}
cargo publish --token=${{ secrets.CARGO_REGISTRY_TOKEN }} --no-verify
2 changes: 0 additions & 2 deletions Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -5,8 +5,6 @@ members = [
"edgedb-derive",
"edgedb-protocol",
"edgedb-tokio",
"examples/globals",
"examples/query-error",
]

[profile.release]
Expand Down
18 changes: 2 additions & 16 deletions edgedb-derive/Cargo.toml
Original file line number Diff line number Diff line change
@@ -1,29 +1,15 @@
[package]
name = "edgedb-derive"
license = "MIT/Apache-2.0"
version = "0.5.2"
version = "0.6.0"
authors = ["MagicStack Inc. <[email protected]>"]
edition = "2018"
description = """
Derive macros for EdgeDB database client.
This crate has been renamed to gel-derive.
"""
readme = "README.md"
rust-version.workspace = true

[dependencies]
syn = {version="2.0", features=["full"]}
proc-macro2 = "1.0.19"
quote = "1.0"
trybuild = "1.0.19"

[dev-dependencies]
bytes = "1.0.1"
edgedb-protocol = {path="../edgedb-protocol"}
serde = {version="1.0", features=["derive"]}
serde_json = "1.0"

[lib]
proc-macro = true

[lints]
workspace = true
17 changes: 1 addition & 16 deletions edgedb-derive/README.md
Original file line number Diff line number Diff line change
@@ -1,19 +1,4 @@
EdgeDB Rust Binding: Derive Crate
=================================

This crate contains derive macros for the EdgeDB client.

* [Documentation](https://docs.rs/edgedb-derive)
* [Tokio Client](https://docs.rs/edgedb-tokio)


License
=======

Licensed under either of

* Apache License, Version 2.0,
(./LICENSE-APACHE or http://www.apache.org/licenses/LICENSE-2.0)
* MIT license (./LICENSE-MIT or http://opensource.org/licenses/MIT)

at your option.
> This crate has been renamed to [gel-derive](https://crates.io/crates/gel-derive)
103 changes: 0 additions & 103 deletions edgedb-derive/src/attrib.rs

This file was deleted.

54 changes: 0 additions & 54 deletions edgedb-derive/src/enums.rs

This file was deleted.

44 changes: 0 additions & 44 deletions edgedb-derive/src/json.rs

This file was deleted.

Loading

0 comments on commit 65f552b

Please sign in to comment.