Skip to content

Update CEnum requirement from 0.4, 0.5 to 0.4, 0.5, 1.0 - #82

Open
dependabot[bot] wants to merge 1 commit into
mainfrom
dependabot/julia/CEnum-0.4-and-0.5-and-1.0
Open

dependabot[bot] wants to merge 1 commit into
mainfrom
dependabot/julia/CEnum-0.4-and-0.5-and-1.0

Conversation

@dependabot

@dependabot dependabot Bot commented on behalf of github Oct 23, 2026

Copy link
Copy Markdown
Contributor

Updates the requirements on CEnum to permit the latest version.

Release notes

Sourced from CEnum's releases.

v1.0.0

CEnum v1.0.0

Diff since v0.5.0

CEnum 1.0.0 is the first stable release. It adds operators and documentation, fixes several inconsistencies between @cenum values and integers, and contains a few breaking changes.

Breaking changes

  • Julia 1.6 or later is required.
  • Operators between a @cenum value and an integer now follow Julia's integer promotion, instead of first converting both operands to the promoted type. Shifts keep the type of the left operand (x << Int64(1) for an Int32 enum is an Int32, it was an Int64), and mixing an unsigned enum with a negative integer no longer throws InexactError (x == -1 is false).
  • hash(x) is now hash(Integer(x)), consistent with ==. A @cenum value and the equal integer are therefore the same key in a Dict or Set.
  • A value that has no named member is shown as T(value), e.g. Fruit(7), both by show and at the REPL, instead of UnknownMember. Symbol(x) and string(x) still return UnknownMember.

New features

  • *, ÷, unary - and isless (so <, sort, ...) work between @cenum values, integers and values of other @cenum types.
  • Without an explicit base type, @cenum picks the first of Int32, UInt32, Int64 and UInt64 that can represent all values, as C compilers do. Values that do not fit in an Int32 used to throw.
  • A value expression can refer to earlier members of the same enum, as in C (@cenum Flags a=1 b=a<<1 ab=a|b), and can be a @cenum value.
  • T(x::T) returns x.
  • @cenum has a docstring, and there is a manual at https://juliainterop.github.io/CEnum.jl/.

Fixes and performance

  • Showing the abstract type CEnum.Cenum at the REPL no longer throws.
  • A Bool enum with more than two members reports an overflow instead of an InexactError.
  • Defining an enum takes a little over half the time it did in 0.5.0, which shortens precompilation of large generated wrappers.

Merged pull requests:

... (truncated)

Commits

Dependabot will resolve any conflicts with this PR as long as you don't alter it yourself. You can also trigger a rebase manually by commenting @dependabot rebase.


Dependabot commands and options

You can trigger Dependabot actions by commenting on this PR:

  • @dependabot rebase will rebase this PR
  • @dependabot recreate will recreate this PR, overwriting any edits that have been made to it
  • @dependabot show <dependency name> ignore conditions will show all of the ignore conditions of the specified dependency
  • @dependabot ignore this major version will close this PR and stop Dependabot creating any more for this major version (unless you reopen the PR or upgrade to it yourself)
  • @dependabot ignore this minor version will close this PR and stop Dependabot creating any more for this minor version (unless you reopen the PR or upgrade to it yourself)
  • @dependabot ignore this dependency will close this PR and stop Dependabot creating any more for this dependency (unless you reopen the PR or upgrade to it yourself)

Updates the requirements on [CEnum](https://github.com/JuliaInterop/CEnum.jl) to permit the latest version.
- [Release notes](https://github.com/JuliaInterop/CEnum.jl/releases)
- [Commits](https://github.com/JuliaInterop/CEnum.jl/commits/v1.0.0)

---
updated-dependencies:
- dependency-name: CEnum
  dependency-version: 1.0.0
  dependency-type: direct:production
...

Signed-off-by: dependabot[bot] <support@github.com>
@dependabot dependabot Bot added dependencies Pull requests that update a dependency file julia Pull requests that update julia code labels Oct 23, 2026

This branch has not been deployed

No deployments
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

dependencies Pull requests that update a dependency file julia Pull requests that update julia code

Projects

None yet

Development

Successfully merging this pull request may close these issues.

0 participants