./devel/cbindgen, Generating C bindings from Rust code

[ CVSweb ] [ Homepage ] [ RSS ] [ Required by ] [ Add to tracker ]

Branch: CURRENT, Version: 0.14.2, Package name: cbindgen-0.14.2, Maintainer: ryoon

This project can be used to generate C bindings for Rust code. It
is currently being developed to support creating bindings for
WebRender, but has been designed to support any project.

Required to build:
[pkgtools/cwrappers] [lang/rust-bin]

Master sites:

SHA1: 60e79b3626cc4d31ff7185e8259c9a1f0a7e1986
RMD160: 5f69077a07b8add7ef78fc7209b0a60aa79d55ac
Filesize: 161.815 KB

Version history: (Expand)

CVS history: (Expand)

   2020-06-14 17:33:29 by Nia Alarie | Files touched by this commit (17)
Log message:
Rename rust-bin's PKGNAME to rust-bin. Add rust.mk for rust packages.

This allows rust-bin and rust to coexist in bulk builds (for testing, etc),
but the packages still may not be installed at the same time.

rust.mk as a solution for picking the correct rust variant was suggested
by gdt@. It is intended to be included directly by packages that do not
use cargo.mk, and indirectly by packages that do use cargo.mk.

rust.mk provides one user-settable variable:

	as before, whether to bootstrap rust from source or use
	official binaries. may be "src" or "bin"

And two package-settable variables:

	the minimum version of Rust required by the package.
	defaults to "1.20.0"

	whether Rust is a runtime dependency, may be "yes" or "no"
   2020-06-03 10:53:04 by Ryo ONODERA | Files touched by this commit (2) | Package updated
Log message:
cbindgen: Update to 0.14.2

 * Fixed minimal dependency versions. (#507)
 * Add an option to write pragma once. (#511)
 * Fix submodule scanning for implicit Rust 2018 modules. (#512)
 * Fix dependency parsing / scanning to handle target-specific versions. (#513)
 * Use heck for case conversion. (#514)
 * Add support for verbatim content after includes. (#416)
 * Allow to add attributes to most generated functions. (#515)

 * Handle mangling pointers. (#508)
 * Unconditionally generate a return statement in partialeq implementations. (#509)

 * Minor tweak at how [export.exclude] is handled to allow excluding
   generic instantiations in C mode. (#501)
 * Documented cpp_compat option. (#496)
 * Fixed a panic when parsing associated constants for a built-in type. (#494)

   * Constants now have suitable documentation. (#471)
   * Fixed some C warnings by emitting void when there are no arguments. (#470)
   * Avoids reading cargo.toml when not needed, which can cause panics in \ 
workspace situations.
   * Only write `default` cases if the switch is not exhaustive. (#475)
   * Some warnings have been refined. (#477)
   * Code generation for static arrays has been fixed. (#479)
   * Opt-in support for constexpr in constants. (#481)
   * Fix C code generation and some warnings when extremely large constants are \ 
used. (#490)
   * Proper escaping of enum variants and fields. (#483)
   * Added support for RefCell (as an opaque type) and Cell. (#489)

ir: escape export_name while writing source of EnumVariant
   2020-03-06 15:22:14 by Ryo ONODERA | Files touched by this commit (2) | Package updated
Log message:
cbindgen: Update to 0.13.1

  * Support #[cfg] on individual enum variants. (#469)

 * Support 'swift_name' attributes on generated functions (#449)
 * Add [export.pre_body] to config (#452)
 * Handle new line in doc attribute (#454)
 * Add support for `Self` in tagged enums, structs and unions (#455, #455, #456)
 * Make sentinel variant respect regular config (#459)
 * Fix layout of tagged enums with size under some configurations (#463)
 * Add an option to allow configuring the order of function names in generated \ 
headers (#466)

Not available
   2020-01-19 19:20:46 by Maya Rashish | Files touched by this commit (6)
Log message:
Rename EFFECTIVE_MAKE_JOBS -> _MAKE_JOBS_N, suggested by gdt.

I am under the impression we use _THING to mean "defined by the
implementation", which would be similar to the C meaning of __ prefix,
rather than "private to this file".
   2020-01-19 17:52:47 by Maya Rashish | Files touched by this commit (8)
Log message:
Make cargo packages respect MAKE_JOBS
   2020-01-09 15:56:28 by Ryo ONODERA | Files touched by this commit (2) | Package updated
Log message:
cbindgen: Update to 0.12.1

 * Added support for #[repr*64)] on enums. \ 
 * Added support to generate plain enums instead of enum classes for C++. \ 
 * Fixed dependency resolution with lockfile v2. \ 

 * Added support for #[repr(align)] and #[repr(packed)] on structs and unions. \ 
 * Added support to generate copy-assignment operators for enums. \ 

Not available

 * Made rust char map to uint32_t. https://github.com/eqrion/cbindgen/pull/424
   2019-12-03 17:29:39 by Min Sik Kim | Files touched by this commit (2)
Log message:
lang/rust/cargo.mk: Remove default DIST_SUBDIR

Some packages using cargo.mk have distfiles not from
   2019-12-03 16:50:09 by Min Sik Kim | Files touched by this commit (2) | Package updated
Log message:
devel/cbindgen: Update to 0.10.1

     * Initialize struct literal with list-initializer for C++11 standard.
     * Surround namespace with __cplusplus ifdef in cpp_compat mode.
     * Add support for --quiet flag.
     * Map char to char32_t.
     * Improve binding_crate_ref() error message.
     * avoid prematurely returning during expansion.
     * Add support for adding "using namespace" statements.
     * Improved error message for missing config file.
     * Add missing header for char32_t.