Commit Graph

25 Commits

Author SHA1 Message Date
David Tolnay
dcbc8773d5
Add buck2 CI 2022-12-01 22:28:47 -08:00
David Tolnay
5561bda12c
Sort package entries in Cargo.toml 2022-07-31 19:19:02 -07:00
David Tolnay
f1d7bff5ba
Require explicit edition on all Buck targets 2022-06-17 23:25:32 -07:00
David Tolnay
e09caa6a1f
Enforce edition on all Bazel targets 2022-04-10 18:07:47 -07:00
Marcel Hlopko
0ad4fe5543 Migrate cxx for bazelbuild/rules_rust#591 2021-10-26 08:16:00 +02:00
David Tolnay
4309c43a5b
Remove rules that override rules_rust's default edition 2021-08-14 13:09:16 -07:00
David Tolnay
0a048999cb
Make demo crate's Cargo dependencies copy/pasteable 2021-03-28 02:16:53 -04:00
David Tolnay
831b02fc6b
Resolve clippy map_unwrap_or lint in demo 2020-12-29 15:19:55 -08:00
David Tolnay
1a003e5e5a
Make demo publishable from source tree ('cxx-demo' on crates.io) 2020-11-22 11:15:46 -08:00
David Tolnay
5e0d82f59d
Merge pull request #456 from dtolnay/unsafe
Enforce unsafe surrounding block on safe-to-call functions
2020-11-15 14:45:05 -08:00
David Tolnay
4bf55ef3aa
cbegin/cend to iterate over const tags 2020-11-11 15:53:24 -08:00
David Tolnay
e0d261ba2b
typename -> class to fix macOS and MSVC 2020-11-11 15:53:23 -08:00
David Tolnay
cbc2a1040d
Revert "Fix blobstore compilation on macOS and MSVC"
This reverts commit ced948046e.
2020-11-11 15:53:23 -08:00
David Tolnay
7be5b1f134
Enforce unsafe surrounding block on safe-to-call functions 2020-11-11 11:09:33 -08:00
David Tolnay
ced948046e
Fix blobstore compilation on macOS and MSVC
macOS:

    src/blobstore.cc:25:73: error: typename specifier refers to non-type member 'impl' in 'org::blobstore::BlobstoreClient'
    BlobstoreClient::BlobstoreClient() : impl(new typename BlobstoreClient::impl) {}
                                                  ~~~~~~~~~~~~~~~~~~~~~~~~~~^~~~
    cxxbridge/crate/demo/include/blobstore.h:20:25: note: referenced member 'impl' is declared here
      std::shared_ptr<impl> impl;
                            ^

MSVC:

    src/blobstore.cc(25): error C2061: syntax error: identifier 'impl'
2020-11-10 23:13:11 -08:00
David Tolnay
4ca366fa57
Switch intro example to blobstore client 2020-11-10 23:05:05 -08:00
David Tolnay
7907966838
Switch to namespace = "quoted::path" in docs and tests
To preserve parity with item-level #[namespace = "..."] which is
currently restricted by rustc to a quoted string.
2020-11-01 09:12:05 -08:00
David Tolnay
717c7e6aa8
Factor out genrules to rust_cxx_bridge.bzl 2020-09-24 10:08:10 -04:00
David Tolnay
dc57990e22
Use more systematic naming for generated code targets 2020-09-24 10:00:50 -04:00
David Tolnay
0cd342913a
Make buck/bazel generated filepaths match source path with extension 2020-09-24 09:40:27 -04:00
David Tolnay
55151b4575
Match bazel's semantics for genrule cmd 2020-09-24 09:40:27 -04:00
David Tolnay
5f6cffad4a
Remove unused import from demo/BUILD 2020-09-24 09:40:08 -04:00
David Tolnay
e02c8b3b98
Load cc_library from @rules_cc
Buildifier warns about this now.

    Function "cc_library" is not global anymore and needs to be loaded
    from "@rules_cc//cc:defs.bzl".buildifier(native-cc)
2020-09-24 08:58:09 -04:00
David Tolnay
ba220ca7af
Include package names in include path 2020-09-01 21:24:40 -07:00
David Tolnay
37531b477e
Combine demo into one root directory 2020-09-01 20:48:12 -07:00