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
// link-test - The smallest possible crate using lammps-sys
//
// If you were to link lammps as a shared library,
// the generated assembly would fit on a postcard.
// Usage:
//
// cargo run --example=link-test [other cargo arguments...]
//
// Successful output looks like e.g.:
//
// Compiling lammps-sys v0.4.0 (file:///home/exp/dev/rust/lammps-sys)
// Finished dev [unoptimized + debuginfo] target(s) in 63.48 secs
// Running `target/debug/examples/link-test`
// LAMMPS (22 Aug 2018)
// using 4 OpenMP thread(s) per MPI task
// Total wall time: 0:00:00
//
// The vast majority of possible problems will manifest during the linking
// of the final binary, before it is run. I can't tell you what you'll see,
// exactly, but most likely cargo will report failure running a "cc" command,
// and exit with a nonzero status.
extern crate lammps_sys;
use ;