Просмотр исходного кода

move cnf stuff into a separate crate, not just a module

Lucas Stadler лет назад: 10
Родитель
Сommit
7bb7b26bc3
4 измененных файлов с 8 добавлено и 3 удалено
  1. 1 1
      rust/dpll/Cargo.lock
  2. 4 1
      rust/dpll/Cargo.toml
  3. 1 0
      rust/dpll/src/lib.rs
  4. 2 1
      rust/dpll/src/main.rs

+ 1 - 1
rust/dpll/Cargo.lock

1
[root]
1
[root]
2
name = "cnf"
2
name = "solve"
3
version = "0.1.0"
3
version = "0.1.0"
4
4

+ 4 - 1
rust/dpll/Cargo.toml

1
[package]
1
[package]
2
name = "cnf"
2
name = "solve"
3
version = "0.1.0"
3
version = "0.1.0"
4
authors = ["Lucas Stadler <lu@papill0n.org>"]
4
authors = ["Lucas Stadler <lu@papill0n.org>"]
5
6
[[bin]]
7
name = "cnf"

+ 1 - 0
rust/dpll/src/lib.rs

1
pub mod cnf;

+ 2 - 1
rust/dpll/src/main.rs

6
 *
6
 *
7
 * You have been warned...
7
 * You have been warned...
8
 */
8
 */
9
extern crate solve;
9
10
10
use std::io;
11
use std::io;
11
use std::io::Read;
12
use std::io::Read;
12
13
13
mod cnf;
14
use solve::cnf;
14
15
15
fn main() {
16
fn main() {
16
    let input: &mut String = &mut String::new();
17
    let input: &mut String = &mut String::new();