radicle_source/
lib.rs

1// This file is part of radicle-surf
2// <https://github.com/radicle-dev/radicle-surf>
3//
4// Copyright (C) 2019-2020 The Radicle Team <dev@radicle.xyz>
5//
6// This program is free software: you can redistribute it and/or modify
7// it under the terms of the GNU General Public License version 3 or
8// later as published by the Free Software Foundation.
9//
10// This program is distributed in the hope that it will be useful,
11// but WITHOUT ANY WARRANTY; without even the implied warranty of
12// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
13// GNU General Public License for more details.
14//
15// You should have received a copy of the GNU General Public License
16// along with this program. If not, see <https://www.gnu.org/licenses/>.
17
18//! Source code related functionality.
19
20/// To avoid incompatible versions of `radicle-surf`, `radicle-source`
21/// re-exports the package under the `surf` alias.
22pub use radicle_surf as surf;
23
24pub mod branch;
25pub use branch::{branches, local_state, Branch, LocalState};
26
27pub mod commit;
28pub use commit::{commit, commits, Commit};
29
30pub mod error;
31pub use error::Error;
32
33pub mod object;
34pub use object::{blob, tree, Blob, BlobContent, Info, ObjectType, Tree};
35
36pub mod oid;
37pub use oid::Oid;
38
39pub mod person;
40pub use person::Person;
41
42pub mod revision;
43pub use revision::Revision;
44
45#[cfg(feature = "syntax")]
46pub mod syntax;
47#[cfg(feature = "syntax")]
48pub use syntax::SYNTAX_SET;
49
50pub mod tag;
51pub use tag::{tags, Tag};