1
  2
  3
  4
  5
  6
  7
  8
  9
 10
 11
 12
 13
 14
 15
 16
 17
 18
 19
 20
 21
 22
 23
 24
 25
 26
 27
 28
 29
 30
 31
 32
 33
 34
 35
 36
 37
 38
 39
 40
 41
 42
 43
 44
 45
 46
 47
 48
 49
 50
 51
 52
 53
 54
 55
 56
 57
 58
 59
 60
 61
 62
 63
 64
 65
 66
 67
 68
 69
 70
 71
 72
 73
 74
 75
 76
 77
 78
 79
 80
 81
 82
 83
 84
 85
 86
 87
 88
 89
 90
 91
 92
 93
 94
 95
 96
 97
 98
 99
100
101
102
103
104
/*
Copyright 2020 Google LLC

Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at

    https://www.apache.org/licenses/LICENSE-2.0

Unless required by applicable law or agreed to in writing, software
distributed under the License is distributed on an "AS IS" BASIS,
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
See the License for the specific language governing permissions and
limitations under the License.
*/

#![allow(stable_features)]
#![doc = include_str ! ("../README.md")]

#[doc = include_str ! ("component.md")]
pub use lockjaw_processor::component;

#[doc = include_str ! ("subcomponent.md")]
pub use lockjaw_processor::subcomponent;

#[doc = include_str ! ("define_component.md")]
pub use lockjaw_processor::define_component;

#[doc = include_str ! ("define_subcomponent.md")]
pub use lockjaw_processor::define_subcomponent;

pub mod component_attributes;

#[doc = include_str ! ("entry_point.md")]
pub use lockjaw_processor::entry_point;

#[doc = include_str ! ("builder_modules.md")]
pub use lockjaw_processor::builder_modules;

#[doc = include_str ! ("component_visible.md")]
pub use lockjaw_processor::component_visible;

#[doc(hidden)]
pub use lockjaw_processor::private_prologue;
#[doc(hidden)]
pub use lockjaw_processor::private_test_prologue;

#[doc = include_str ! ("prologue.md")]
pub use lockjaw_processor::prologue;

#[doc = include_str ! ("epilogue.md")]
pub use lockjaw_processor::epilogue;

#[doc = include_str ! ("injectable.md")]
pub use lockjaw_processor::injectable;

pub mod injectable_attributes;

#[doc = include_str ! ("module.md")]
pub use lockjaw_processor::module;

pub mod module_attributes;

#[doc = include_str ! ("qualifier.md")]
pub use lockjaw_processor::qualifier;

#[doc(hidden)]
pub use lockjaw_processor::private_root_epilogue;
#[doc(hidden)]
pub use lockjaw_processor::private_test_epilogue;

mod component_lifetime;

pub use component_lifetime::Cl;

mod once;
pub use once::Once;

/// Function that must be called inside the
/// [cargo build script](https://doc.rust-lang.org/cargo/reference/build-scripts.html) to setup the
/// lockjaw environment.
///
/// lockjaw should be added to `[build-dependencies]` of the crate.
///
/// ```
/// // build.rs
/// fn main() {
///     lockjaw::build_script();
/// }
/// ```
pub fn build_script() {
    // Do nothing. just forcing env var OUT_DIR to be set.
}

mod provider;

pub use provider::Provider;

mod lazy;

pub use lazy::Lazy;

#[doc = include_str ! ("singleton.md")]
pub trait Singleton {}