1#![cfg_attr(any(feature = "std", feature = "alloc"), doc = include_str!("../README.md"))]
2#![cfg_attr(
3 not(any(feature = "std", feature = "alloc")),
4 doc = "The editing timeline as data. This build has neither the `std` nor the `alloc` \
5 feature, and on `core` alone the crate exports only the time words it re-exports \
6 from `mediatime`: [`Duration`], [`Rate`], [`TimeRange`], [`Timebase`] and \
7 [`Timestamp`]. Every model type owns its names, lists and maps, so the timeline, \
8 `validate`, `layout`, `diff` and `otio` need `alloc`: enable the `alloc` feature, \
9 or `std` (the default)."
10)]
11#![cfg_attr(not(test), no_std)]
12#![cfg_attr(docsrs, feature(doc_cfg))]
13#![deny(missing_docs)]
14#![forbid(unsafe_code)]
15
16#[cfg(all(not(feature = "std"), feature = "alloc"))]
20extern crate alloc as std;
21
22#[cfg(feature = "std")]
23extern crate std;
24
25#[cfg(any(feature = "std", feature = "alloc"))]
26mod clip;
27#[cfg(any(feature = "std", feature = "alloc"))]
28mod diff;
29#[cfg(any(feature = "std", feature = "alloc"))]
30mod layout;
31#[cfg(any(feature = "std", feature = "alloc"))]
32mod marker;
33#[cfg(any(feature = "std", feature = "alloc"))]
34mod metadata;
35#[cfg(any(feature = "std", feature = "alloc"))]
36#[cfg_attr(docsrs, doc(cfg(any(feature = "std", feature = "alloc"))))]
37pub mod otio;
38#[cfg(any(feature = "std", feature = "alloc"))]
39mod schema;
40#[cfg(any(feature = "std", feature = "alloc"))]
41mod time;
42#[cfg(any(feature = "std", feature = "alloc"))]
43mod timeline;
44#[cfg(any(feature = "std", feature = "alloc"))]
45mod transition;
46#[cfg(any(feature = "std", feature = "alloc"))]
47mod validate;
48#[cfg(all(feature = "serde", any(feature = "std", feature = "alloc")))]
49mod wire;
50
51#[cfg(any(feature = "std", feature = "alloc"))]
52#[cfg_attr(docsrs, doc(cfg(any(feature = "std", feature = "alloc"))))]
53pub use clip::{Clip, ClipId, Fade, FadeShape, Fades, Gain, MediaRef};
54#[cfg(any(feature = "std", feature = "alloc"))]
55#[cfg_attr(docsrs, doc(cfg(any(feature = "std", feature = "alloc"))))]
56pub use diff::{Ambiguous, Change, ChangeKind, Delta, Side, diff};
57#[cfg(any(feature = "std", feature = "alloc"))]
58#[cfg_attr(docsrs, doc(cfg(any(feature = "std", feature = "alloc"))))]
59pub use layout::{Item, Layout, TrackLayout, layout};
60#[cfg(any(feature = "std", feature = "alloc"))]
61#[cfg_attr(docsrs, doc(cfg(any(feature = "std", feature = "alloc"))))]
62pub use marker::{Marker, MarkerColor};
63#[cfg(any(feature = "std", feature = "alloc"))]
64#[cfg_attr(docsrs, doc(cfg(any(feature = "std", feature = "alloc"))))]
65pub use metadata::{Metadata, ReaderMetadata};
66#[cfg(any(feature = "std", feature = "alloc"))]
67#[cfg_attr(docsrs, doc(cfg(any(feature = "std", feature = "alloc"))))]
68pub use schema::Schema;
69#[cfg(any(feature = "std", feature = "alloc"))]
70#[cfg_attr(docsrs, doc(cfg(any(feature = "std", feature = "alloc"))))]
71pub use timeline::{Timeline, Track, TrackKind};
72#[cfg(any(feature = "std", feature = "alloc"))]
73#[cfg_attr(docsrs, doc(cfg(any(feature = "std", feature = "alloc"))))]
74pub use transition::{Transition, TransitionKind};
75#[cfg(any(feature = "std", feature = "alloc"))]
76#[cfg_attr(docsrs, doc(cfg(any(feature = "std", feature = "alloc"))))]
77pub use validate::{
78 ClipAt, ClipPair, ClipRange, Edge, EdgeAt, IdClash, MarkerAt, MetadataAt, Mismatch, NamespaceAt,
79 Place, RangeAt, Refusal, TransitionAt, validate,
80};
81
82pub use mediatime::{Duration, Rate, TimeRange, Timebase, Timestamp};