Skip to content
GitLab
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in
Toggle navigation
Menu
Open sidebar
parity
Mirrored projects
ink
Commits
cfb945af
Unverified
Commit
cfb945af
authored
Mar 26, 2019
by
Robin Freyler
Browse files
[lang] Fix crate feature usage of `generate-api-description`
parent
64051226
Changes
1
Hide whitespace changes
Inline
Side-by-side
lang/src/lib.rs
View file @
cfb945af
...
...
@@ -31,7 +31,7 @@ pub fn contract(input: proc_macro::TokenStream) -> proc_macro::TokenStream {
#[macro_use]
mod
errors
;
#[cfg(feature
s
=
"generate-api-description"
)]
#[cfg(feature
=
"generate-api-description"
)]
mod
api
;
mod
ast
;
...
...
@@ -68,10 +68,10 @@ pub(crate) fn contract_gen_impl2(
Ok
(
tokens
.into
())
}
#[cfg(feature
s
=
"generate-api-description"
)]
#[cfg(feature
=
"generate-api-description"
)]
fn
generate_api_description
(
contract
:
&
hir
::
Contract
)
{
api
::
generate_api_description
(
&
hir_contract
);
}
#[cfg(not(feature
s
=
"generate-api-description"
))]
#[cfg(not(feature
=
"generate-api-description"
))]
fn
generate_api_description
(
_contract
:
&
hir
::
Contract
)
{}
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment