Skip to content

Commit

Permalink
adds build.rs to embedded example
Browse files Browse the repository at this point in the history
  • Loading branch information
seanwatters committed Mar 12, 2024
1 parent 4a36f8f commit 7439f13
Show file tree
Hide file tree
Showing 3 changed files with 247 additions and 2 deletions.
220 changes: 218 additions & 2 deletions examples/embedded/Cargo.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

3 changes: 3 additions & 0 deletions examples/embedded/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -24,3 +24,6 @@ license = "AGPL-3.0-only"

[dependencies]
bicycle_core = { path = "__bicycle__/core" }

[build-dependencies]
bicycle = { path = "../.." }
26 changes: 26 additions & 0 deletions examples/embedded/build.rs
Original file line number Diff line number Diff line change
@@ -0,0 +1,26 @@
/*
Bicycle is a protobuf defined database framework.
Copyright (C) 2024 Ordinary Labs
This program is free software: you can redistribute it and/or modify
it under the terms of the GNU Affero General Public License as
published by the Free Software Foundation, either version 3 of the
License, or (at your option) any later version.
This program is distributed in the hope that it will be useful,
but WITHOUT ANY WARRANTY; without even the implied warranty of
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
GNU Affero General Public License for more details.
You should have received a copy of the GNU Affero General Public License
along with this program. If not, see <http://www.gnu.org/licenses/>.
*/

use std::env;
use std::error::Error;

fn main() -> Result<(), Box<dyn Error>> {
let schema_path = concat!(env!("CARGO_MANIFEST_DIR"), "/schema.proto");
bicycle::build(schema_path, "sqlite")
}

0 comments on commit 7439f13

Please sign in to comment.