ltk_webkit_helper/
ltk-webkit-helper.rs

1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
// SPDX-License-Identifier: LGPL-2.1-only
// Copyright (C) 2026 Liberux Labs, S. L. <info@liberux.net>

//! The executable CEF starts its subprocesses from, shipped beside a host's executable on Windows.

#![ cfg_attr( windows, windows_subsystem = "windows" ) ]

#[ cfg( windows ) ]
fn main()
{
	std::process::exit( ltk_webkit::helper_main() );
}

#[ cfg( not( windows ) ) ]
fn main()
{
	eprintln!( "ltk-webkit-helper serves the CEF engine on Windows; WPE needs no helper" );
	std::process::exit( 1 );
}