File: cat.rs

package info (click to toggle)
rust-subversion 0.0.8-4
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid
  • size: 752 kB
  • sloc: makefile: 2
file content (14 lines) | stat: -rw-r--r-- 334 bytes parent folder | download | duplicates (2)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
use subversion::client::CatOptions;

fn main() {
    let mut ctx = subversion::client::Context::new().unwrap();

    let mut stdout = std::io::stdout();

    ctx.cat(
        "http://svn.apache.org/repos/asf/subversion/trunk/subversion/libsvn_client/cat.c",
        &mut stdout,
        &CatOptions::default(),
    )
    .unwrap();
}