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

Merge auto_enums_core and auto_enums_derive into main auto_enums crate #123

Merged
merged 2 commits into from
Jan 5, 2021
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
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
18 changes: 5 additions & 13 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -9,23 +9,15 @@ jobs:
create-release:
if: github.repository_owner == 'taiki-e'
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- uses: taiki-e/github-actions/create-release@main
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}

publish:
if: github.repository_owner == 'taiki-e'
needs:
- create-release
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- uses: taiki-e/github-actions/install-rust@main
with:
toolchain: stable
- run: |
ci/publish.sh
- run: cargo package
- uses: taiki-e/github-actions/create-release@main
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
- run: cargo publish
env:
CARGO_REGISTRY_TOKEN: ${{ secrets.CARGO_REGISTRY_TOKEN }}
2 changes: 2 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,8 @@ Note: In this file, do not use the hard wrap in the middle of a sentence for com

## [Unreleased]

- [Merge `auto_enums_core` and `auto_enums_derive` crates into main `auto_enums` crate.](https://github.com/taiki-e/auto_enums/pull/123)

## [0.7.12] - 2021-01-05

- Exclude unneeded files from crates.io.
Expand Down
56 changes: 32 additions & 24 deletions Cargo.toml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
[package]
name = "auto_enums"
version = "0.7.12"
version = "0.8.0-dev"
authors = ["Taiki Endo <te316e89@gmail.com>"]
edition = "2018"
license = "Apache-2.0 OR MIT"
Expand All @@ -9,7 +9,7 @@ documentation = "https://docs.rs/auto_enums"
keywords = ["enum", "macros", "derive", "attribute"]
categories = ["rust-patterns"]
readme = "README.md"
exclude = ["/.github", "/ci", "/scripts"]
exclude = ["/.github", "/scripts"]
description = """
A library for to allow multiple return types by automatically generated enum.
"""
Expand All @@ -19,71 +19,79 @@ all-features = true
targets = ["x86_64-unknown-linux-gnu"]

[workspace]
members = ["core", "derive", "tests/doc"]
members = ["tests/doc"]

[lib]
proc-macro = true

[features]
# Default features.
default = ["std"]

# Analyze return type of function and `let` binding.
type_analysis = ["auto_enums_core/type_analysis"]
type_analysis = []

# Enable to use `transpose*` methods.
transpose_methods = ["auto_enums_derive/transpose_methods"]
transpose_methods = []

# ==============================================================================
# [std|core] libraries

# Enable to use `std` library's traits.
std = ["auto_enums_derive/std"]
std = []
# Enable to use `[std|core]::ops`'s `Deref`, `DerefMut`, `Index`, `IndexMut`, and `RangeBounds` traits.
ops = ["auto_enums_derive/ops"]
ops = []
# Enable to use `[std|core]::convert`'s `AsRef` and `AsMut` traits.
convert = ["auto_enums_derive/convert"]
convert = []
# Enable to use `[std|core]::fmt`'s traits other than `Debug`, `Display` and `Write`
fmt = ["auto_enums_derive/fmt"]
fmt = []

# ==============================================================================
# Using external libraries

# https://docs.rs/futures/0.3
futures03 = ["auto_enums_derive/futures03"]
futures03 = []
# https://docs.rs/futures/0.1
futures01 = ["auto_enums_derive/futures01"]
futures01 = []
# TODO: remove this in favor of futures03.
futures = ["auto_enums_derive/futures"]
futures = []
# https://docs.rs/rayon/1
rayon = ["auto_enums_derive/rayon"]
rayon = []
# https://docs.rs/serde/1
serde = ["auto_enums_derive/serde"]
serde = []
# https://docs.rs/tokio/1
tokio1 = ["auto_enums_derive/tokio1"]
tokio1 = []
# https://docs.rs/tokio/0.3
tokio03 = ["auto_enums_derive/tokio03"]
tokio03 = []
# https://docs.rs/tokio/0.2
tokio02 = ["auto_enums_derive/tokio02"]
tokio02 = []
# https://docs.rs/tokio/0.1
tokio01 = ["auto_enums_derive/tokio01"]
tokio01 = []

# ==============================================================================
# Unstable features
# These features are outside of the normal semver guarantees and require the
# `unstable` feature as an explicit opt-in to unstable API.
unstable = ["auto_enums_derive/unstable"]
unstable = []

# Enable unstable features of [std|core] libraries

# Enable to use `[std|core]::ops::Generator` trait.
generator_trait = ["auto_enums_derive/generator_trait"]
generator_trait = []
# Enable to use `[std|core]::ops`'s `Fn`, `FnMut`, and `FnOnce` traits.
fn_traits = ["auto_enums_derive/fn_traits"]
fn_traits = []
# Enable to use `[std|core]::iter::TrustedLen` trait.
trusted_len = ["auto_enums_derive/trusted_len"]
trusted_len = []

[build-dependencies]
autocfg = "1"

# NB: futures*, tokio*, serde, and rayon are public dependencies.
[dependencies]
auto_enums_core = { version = "=0.7.12", path = "core", default-features = false }
auto_enums_derive = { version = "=0.7.12", path = "derive", default-features = false }
derive_utils = { version = "0.11" }
proc-macro2 = "1"
quote = "1"
syn = { version = "1", features = ["full", "visit-mut"] }

[dev-dependencies]
rustversion = "1"
Expand Down
File renamed without changes.
20 changes: 0 additions & 20 deletions ci/publish.sh

This file was deleted.

32 changes: 0 additions & 32 deletions core/Cargo.toml

This file was deleted.

177 changes: 0 additions & 177 deletions core/LICENSE-APACHE

This file was deleted.

Loading