Skip to content

Commit 70230b2

Browse files
committed
Switch to CompilerCommand::link_override instead of annotation
fix: forgot to change edition test crates fix: remove unused stuff I forgot
1 parent a0c37e8 commit 70230b2

File tree

12 files changed

+47
-357
lines changed

12 files changed

+47
-357
lines changed

capnp/src/lib.rs

-1
Original file line numberDiff line numberDiff line change
@@ -54,7 +54,6 @@ pub mod message;
5454
pub mod primitive_list;
5555
pub mod private;
5656
pub mod raw;
57-
pub mod rust_capnp;
5857
pub mod schema;
5958
pub mod serialize;
6059
pub mod serialize_packed;

capnp/src/rust_capnp.rs

-268
This file was deleted.

capnpc/rust.capnp

-26
Original file line numberDiff line numberDiff line change
@@ -27,32 +27,6 @@ annotation parentModule @0xabee386cd1450364 (file) :Text;
2727
# }
2828
# }
2929

30-
annotation imports @0xc3b9fe42a83105cd (file) :List(Import);
31-
# Allows specifying that the generated code for an import is located in another
32-
# crate.
33-
#
34-
# You only need this if your code uses imported types whose generated code is
35-
# in another crate. You can only use this annotation once in all the files
36-
# compiled together.
37-
#
38-
# using Json = import "/capnp/compat/json.capnp";
39-
#
40-
# $Rust.imports([
41-
# (path = "/capnp/compat/json.capnp", crate = "capnp_json")
42-
# ]);
43-
44-
struct Import {
45-
path @0 :Text;
46-
crate @1 :Text;
47-
}
48-
49-
annotation crate @0xc1763f46d790815c (file) :Text;
50-
# The Rust crate that provides the generated code.
51-
#
52-
# You need this if you're providing a library to be used by other crates. If
53-
# you're only using the generated code in your own crate then you don't need to
54-
# change from the default.
55-
5630
annotation option @0xabfef22c4ee1964e (field) :Void;
5731
# Make the generated getters return Option<T> instead of T. Supported on
5832
# pointer types (e.g. structs, lists, and blobs).

0 commit comments

Comments
 (0)